Makefile.in: Add gen-zero-r0 option.

sim-main.h (GPR_SET, GPR_CLEAR): Define.
simops.c (OP_24007E0):  Sign extend the imm9 operand of a mul instruction.
This commit is contained in:
Nick Clifton 2002-08-29 16:59:20 +00:00
parent 07c988968a
commit e551c2572e
4 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2002-08-29 Nick Clifton <nickc@redhat.com>
From 2001-08-23 Catherine Moore <clm@redhat.com>
* Makefile.in: Add gen-zero-r0 option.
* sim-main.h (GPR_SET, GPR_CLEAR): Define.
* simops.c (OP_24007E0): Sign extend the imm9
operand of a mul instruction.
2002-06-17 Andrew Cagney <cagney@redhat.com>
* simops.c (trace_result): Fix printf formatting.

View File

@ -82,6 +82,7 @@ tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
../igen/igen \
$(IGEN_TRACE) \
-G gen-direct-access \
-G gen-zero-r0 \
-i $(IGEN_INSN) \
-o $(IGEN_DC) \
-x \

View File

@ -366,6 +366,8 @@ do { \
#endif
#define GPR_SET(N, VAL) (State.regs[(N)] = (VAL))
#define GPR_CLEAR(N) (State.regs[(N)] = 0)
extern void divun ( unsigned int N,
unsigned long int als,

View File

@ -2458,7 +2458,7 @@ OP_24007E0 (void)
{
trace_input ("mul", OP_IMM_REG_REG, 0);
Multiply64 (true, (OP[3] & 0x1f) | ((OP[3] >> 13) & 0x1e0));
Multiply64 (true, SEXT9 ((OP[3] & 0x1f) | ((OP[3] >> 13) & 0x1e0)));
trace_output (OP_IMM_REG_REG);