public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: v850: switch from SIM_ADDR to address_word
@ 2022-12-23  0:46 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2022-12-23  0:46 UTC (permalink / raw)
  To: gdb-patches

The latter type matches the address size configured for this sim.
---
 sim/v850/simops.c | 4 ++--
 sim/v850/simops.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 1d5403be561c..67656d398c80 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -3387,7 +3387,7 @@ v850_satsub (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p
 
 uint32_t
 load_data_mem (SIM_DESC  sd,
-	       SIM_ADDR  addr,
+	       address_word  addr,
 	       int       len)
 {
   uint32_t data;
@@ -3414,7 +3414,7 @@ load_data_mem (SIM_DESC  sd,
 
 void
 store_data_mem (SIM_DESC    sd,
-		SIM_ADDR    addr,
+		address_word    addr,
 		int         len,
 		uint32_t  data)
 {
diff --git a/sim/v850/simops.h b/sim/v850/simops.h
index 632febe5de55..85339f55cbe1 100644
--- a/sim/v850/simops.h
+++ b/sim/v850/simops.h
@@ -79,8 +79,8 @@ int OP_307E0 (void);
 int v850_float_compare(SIM_DESC sd, int cmp, sim_fpu wop1, sim_fpu wop2, int double_op_p);
 
 /* MEMORY ACCESS */
-uint32_t load_data_mem(SIM_DESC sd, SIM_ADDR addr, int len);
-void store_data_mem(SIM_DESC sd, SIM_ADDR addr, int len, uint32_t data);
+uint32_t load_data_mem(SIM_DESC sd, address_word addr, int len);
+void store_data_mem(SIM_DESC sd, address_word addr, int len, uint32_t data);
 
 unsigned long Add32 (unsigned long a1, unsigned long a2, int * carry);
 
-- 
2.39.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-23  0:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23  0:46 [PATCH] sim: v850: switch from SIM_ADDR to address_word Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).