From a83d7d870f21777725939c88f72aef0f3944dec0 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 23 Nov 1998 05:50:21 +0000 Subject: Switch mips-lsi-elf mips16 simulator to igen (from gencode). --- sim/mips/sim-main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/mips/sim-main.h') diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h index 42c152c..20f13a3 100644 --- a/sim/mips/sim-main.h +++ b/sim/mips/sim-main.h @@ -495,7 +495,7 @@ memset (&(CPU)->pending, 0, sizeof ((CPU)->pending)) /* For backward compatibility */ #define PENDING_FILL(R,VAL) \ -{ \ +do { \ if ((R) >= FGRIDX && (R) < FGRIDX + NR_FGR) \ { \ PENDING_SCHED(FGR[(R) - FGRIDX], VAL, 1, -1); \ @@ -503,7 +503,7 @@ memset (&(CPU)->pending, 0, sizeof ((CPU)->pending)) } \ else \ PENDING_SCHED(GPR[(R)], VAL, 1, -1); \ -} +} while (0) -- cgit v1.1