From 0145ab2e522710ce9b87652c2afdcc44cf51ac8b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 27 Jan 2004 23:30:01 +0000 Subject: [PATCH] 2004-01-27 Michael Snyder * gencode.c: (op tab): Some refs and defs fixes. "fsrra" -> "fsrra ". "sleep": replace array ref with array addr. "trapa": ditto. --- sim/sh/ChangeLog | 6 +++++- sim/sh/gencode.c | 14 +++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog index 8d941b25c9a..62edf59bfcd 100644 --- a/sim/sh/ChangeLog +++ b/sim/sh/ChangeLog @@ -1,6 +1,10 @@ 2004-01-27 Michael Snyder - * gencode.c: Comment and whitespace clean-ups. + * gencode.c: (op tab): Some refs and defs fixes. + "fsrra" -> "fsrra ". + "sleep": replace array ref with array addr. + "trapa": ditto. + Comment and whitespace clean-ups. 2004-01-07 Michael Snyder diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 9ea898f7025..9769d7391c0 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -72,7 +72,7 @@ op tab[] = "R[n] = ult;", }, - { "0", "", "and #,R0", "11001001i8*1....", + { "0", "0", "and #,R0", "11001001i8*1....", "R0 &= i;", }, { "n", "nm", "and ,", "0010nnnnmmmm1001", @@ -201,8 +201,8 @@ op tab[] = "SET_SR_T (0);", }, - { "", "nm", "div1 ,", "0011nnnnmmmm0100", - "div1 (R, m, n/*, T*/);", + { "n", "nm", "div1 ,", "0011nnnnmmmm0100", + "div1 (&R0, m, n/*, T*/);", }, { "", "nm", "dmuls.l ,", "0011nnnnmmmm1101", @@ -491,7 +491,7 @@ op tab[] = }, /* sh4 */ - { "", "", "fsrra", "1111nnnn01111101", + { "", "", "fsrra ", "1111nnnn01111101", "if (FPSCR_PR)", " RAISE_EXCEPTION (SIGILL);", "else", @@ -841,7 +841,7 @@ op tab[] = "WLAT (R[n], R[0]);", }, - { "n", "0", "movco.l R0, @", "0000nnnn01110011", + { "", "n0", "movco.l R0, @", "0000nnnn01110011", "/* LDST -> T */", "SET_SR_T (LDST);", "/* if (T) R0 -> (Rn) */", @@ -1102,7 +1102,7 @@ op tab[] = }, { "", "", "sleep", "0000000000011011", - "nip += trap (0xc3, R0, PC, memory, maskl, maskw, endianw);", + "nip += trap (0xc3, &R0, PC, memory, maskl, maskw, endianw);", }, { "n", "", "stc ,", "0000nnnnmmmm0010", @@ -1193,7 +1193,7 @@ op tab[] = { "0", "", "trapa #", "11000011i8*1....", "long imm = 0xff & i;", "if (i < 20 || i == 33 || i == 34 || i == 0xc3)", - " nip += trap (i, R, PC, memory, maskl, maskw, endianw);", + " nip += trap (i, &R0, PC, memory, maskl, maskw, endianw);", #if 0 "else {", /* SH-[12] */ -- 2.30.2