This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: v850 simulator does not sign extend first operand to divh
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 05 Apr 2003 13:58:40 -0500
- Subject: Re: RFA: v850 simulator does not sign extend first operand to divh
- References: <m3brzot4wq.fsf@workshop.nickc.cambridge.redhat.com>
Hi Guys,
May I apply the patch below please ? It makes the v850 simulator
sign extend its first operand, which is how the instruction should
behave.
Cheers
Nick
2003-04-03 Nick Clifton <nickc at redhat dot com>
* simops.c (OP_40): Make divh sign extend its first operand.
Yes, but can you please put the fixed code directly in v850.igen
(deleting OP_40):
// DIVH
rrrrr!0,000010,RRRRR!0:I:::divh
"divh r<reg1>, r<reg2>"
{
COMPAT_1 (OP_40 ());
}
Andrew