summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorDenis Pilat <denis.pilat@st.com>2007-10-08 11:51:31 +0000
committerDenis Pilat <denis.pilat@st.com>2007-10-08 11:51:31 +0000
commit137f544a06cc65455456c5b2b38c185c3316293f (patch)
tree68922d595a8d80719cce285dfbb8da44e71eb659 /sim
parent6906a1ffac05616199fe343b124784785f398f55 (diff)
downloadgdb-137f544a06cc65455456c5b2b38c185c3316293f.tar.gz
2007-09-24 Andrew Stubbs <andrew.stubbs@st.com>
* gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
Diffstat (limited to 'sim')
-rw-r--r--sim/sh/ChangeLog5
-rw-r--r--sim/sh/gencode.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog
index 8207483e99e..e06e7640e44 100644
--- a/sim/sh/ChangeLog
+++ b/sim/sh/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-08 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the
+ definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
+
2007-03-02 Andrew Stubbs <andrew.stubbs@st.com>
* gencode.c (tab): Correct pre-decrement instructions when m == n.
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 15313b0be0a..738b718e23a 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -993,6 +993,7 @@ op tab[] =
"L (0);",
},
{ "n", "", "mov.l @(<disp>,PC),<REG_N>", "1101nnnni8p4....",
+ "RAISE_EXCEPTION_IF_IN_DELAY_SLOT ();",
"MA (1);",
"R[n] = RLAT ((PH2T (PC) & ~3) + 4 + i);",
"L (n);",
@@ -1059,6 +1060,7 @@ op tab[] =
"L (0);",
},
{ "n", "", "mov.w @(<disp>,PC),<REG_N>", "1001nnnni8p2....",
+ "RAISE_EXCEPTION_IF_IN_DELAY_SLOT ();",
"MA (1);",
"R[n] = RSWAT (PH2T (PC + 4 + i));",
"L (n);",
@@ -1120,6 +1122,7 @@ op tab[] =
},
{ "0", "", "mova @(<disp>,PC),R0", "11000111i8p4....",
+ "RAISE_EXCEPTION_IF_IN_DELAY_SLOT ();",
"R0 = ((i + 4 + PH2T (PC)) & ~0x3);",
},