]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: v850: switch from SIM_ADDR to address_word
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 Nov 2022 18:25:42 +0000 (01:25 +0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 00:46:36 +0000 (19:46 -0500)
The latter type matches the address size configured for this sim.

sim/v850/simops.c
sim/v850/simops.h

index 1d5403be561c7110ad9f8e9f60855c94786e9b1f..67656d398c803f0f7ebccdb52bea39cd0d1b8015 100644 (file)
@@ -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)
 {
index 632febe5de55a77867245e5eac38e93256f90c5e..85339f55cbe11c9cd488f810b5f9555e9d9ad0dd 100644 (file)
@@ -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);