From e551c2572e97cf7ab0a431f5a1f25207d9a4d179 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 29 Aug 2002 16:59:20 +0000 Subject: 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. --- sim/v850/sim-main.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/v850/sim-main.h') diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h index 37ea31f..a16ec00 100644 --- a/sim/v850/sim-main.h +++ b/sim/v850/sim-main.h @@ -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, -- cgit v1.1