sim: cr16: delete unused memory helpers
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Nov 2015 20:25:29 +0000 (12:25 -0800)
committerMike Frysinger <vapier@gentoo.org>
Mon, 16 Nov 2015 02:35:31 +0000 (21:35 -0500)
These aren't used anywhere and are just leftover from the d10v port.
Delete them so follow up commits are easier to follow.

sim/cr16/ChangeLog
sim/cr16/cr16_sim.h
sim/cr16/endian.c

index 360b2347a17006e484704448454cfd64b78736b6..aaf44ebfe4cf40297a117007967b295dd6a965d4 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * cr16_sim.h (get_longlong, write_longlong, WRITE_16, READ_64,
+       WRITE_64): Delete.
+       * endian.c (get_longlong, write_longlong): Likewise.
+
 2015-11-15  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.in (SIM_OBJS): Add sim-reg.o.
index 5e0eabe3b76ec758cc742aab83f3ddf7f91bf7e9..e9769accdc15153033286e9909dcf2dda16bda35 100644 (file)
@@ -436,10 +436,8 @@ extern bfd_vma decode_pc (void);
 #else
 extern uint32 get_longword (uint8 *);
 extern uint16 get_word (uint8 *);
-extern int64 get_longlong (uint8 *);
 extern void write_word (uint8 *addr, uint16 data);
 extern void write_longword (uint8 *addr, uint32 data);
-extern void write_longlong (uint8 *addr, int64 data);
 #endif
 
 #define SW(addr,data)          write_word(dmem_addr(addr),data)
@@ -447,9 +445,6 @@ extern void write_longlong (uint8 *addr, int64 data);
 #define SLW(addr,data)         write_longword(dmem_addr(addr),data)
 #define RLW(x)                 get_longword(dmem_addr(x))
 #define READ_16(x)             get_word(x)
-#define WRITE_16(addr,data)    write_word(addr,data)
-#define READ_64(x)             get_longlong(x)
-#define WRITE_64(addr,data)    write_longlong(addr,data)
 
 #define JMP(x)                 do { SET_PC (x); State.pc_changed = 1; } while (0)
 
index 3cf2f2220dae4d17dbc673d6728a7d7aa7797059..03f79aca8f55993dd24f865bb2148e0ab2371739 100644 (file)
@@ -39,14 +39,6 @@ get_longword (uint8 *x)
   return (((uint32) *(uint16 *)x) << 16) | ((uint32) *(uint16 *)(x+2));
 }
 
-ENDIAN_INLINE int64
-get_longlong (uint8 *x)
-{
-  uint32 top = get_longword (x);
-  uint32 bottom = get_longword (x+4);
-  return (((int64)top)<<32) | (int64)bottom;
-}
-
 ENDIAN_INLINE void
 write_word (uint8 *addr, uint16 data)
 {
@@ -61,10 +53,3 @@ write_longword (uint8 *addr, uint32 data)
   *(uint16 *)(addr + 2) = (uint16)(data >> 16);
   *(uint16 *)(addr) = (uint16)data;
 }
-
-ENDIAN_INLINE void
-write_longlong (uint8 *addr, int64 data)
-{
-  write_longword (addr+4, (uint32)(data >> 32));
-  write_longword (addr, (uint32)data);
-}