aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-25 00:28:55 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-25 02:09:18 -0500
commit70b920ed097442a4b663fc0e64319382397ae46b (patch)
treed49b81a0a7f640495ca8b92ff108e9e740fcf0c3 /sim/mn10300
parentfb749760444f6570fa03bc91aa36024b7e4b4e55 (diff)
downloadgdb-70b920ed097442a4b663fc0e64319382397ae46b.zip
gdb-70b920ed097442a4b663fc0e64319382397ae46b.tar.gz
gdb-70b920ed097442a4b663fc0e64319382397ae46b.tar.bz2
sim: mn10300: fix SMP compile
The igen tool sets up the SD define for code fragments to use, but mn10300 was expecting "sd". Change all the igen related code to use SD so it actually compiles.
Diffstat (limited to 'sim/mn10300')
-rw-r--r--sim/mn10300/am33.igen8
-rw-r--r--sim/mn10300/mn10300-sim.h4
-rw-r--r--sim/mn10300/mn10300.igen24
3 files changed, 18 insertions, 18 deletions
diff --git a/sim/mn10300/am33.igen b/sim/mn10300/am33.igen
index 964f075..da8f88f 100644
--- a/sim/mn10300/am33.igen
+++ b/sim/mn10300/am33.igen
@@ -256,8 +256,8 @@
usp += 4;
}
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
if (mask & 0x1)
@@ -307,8 +307,8 @@
PC = cia;
mask = REGS;
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
if (mask & 0x4)
diff --git a/sim/mn10300/mn10300-sim.h b/sim/mn10300/mn10300-sim.h
index f6e4d85..3eadc0f 100644
--- a/sim/mn10300/mn10300-sim.h
+++ b/sim/mn10300/mn10300-sim.h
@@ -182,10 +182,10 @@ dw2u64 (dword data)
/* Bring data in from the cold */
#define IMEM8(EA) \
-(sim_core_read_aligned_1(STATE_CPU(sd, 0), EA, exec_map, (EA)))
+(sim_core_read_aligned_1(STATE_CPU (SD, 0), EA, exec_map, (EA)))
#define IMEM8_IMMED(EA, N) \
-(sim_core_read_aligned_1(STATE_CPU(sd, 0), EA, exec_map, (EA) + (N)))
+(sim_core_read_aligned_1(STATE_CPU (SD, 0), EA, exec_map, (EA) + (N)))
/* Function declarations. */
diff --git a/sim/mn10300/mn10300.igen b/sim/mn10300/mn10300.igen
index 6330d6f..42c0ead 100644
--- a/sim/mn10300/mn10300.igen
+++ b/sim/mn10300/mn10300.igen
@@ -4024,8 +4024,8 @@
sp += 4;
}
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
if (mask & 0x1)
@@ -4080,8 +4080,8 @@
PC = cia;
mask = REGS;
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
if (mask & 0x4)
@@ -4183,8 +4183,8 @@
mask = REGS;
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
if (mask & 0x4)
@@ -4293,8 +4293,8 @@
mask = REGS;
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
if (mask & 0x4)
@@ -4401,8 +4401,8 @@
offset = -4;
mask = REGS;
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{
@@ -4507,8 +4507,8 @@
offset = -4;
mask = REGS;
- if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33
- || STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2
+ if (STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33
+ || STATE_ARCHITECTURE (SD)->mach == bfd_mach_am33_2
)
{