aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-core.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-10-28 02:13:09 +0000
committerAndrew Cagney <cagney@redhat.com>1997-10-28 02:13:09 +0000
commita86809d323cb48945798fb02f29ac9481bf5f7d9 (patch)
treef95e3062d8ba9a9a62ed7301575d797527c6b428 /sim/common/sim-core.h
parent4f9cfe69b4636abc5ec8d345d142522f4d246723 (diff)
downloadbinutils-a86809d323cb48945798fb02f29ac9481bf5f7d9.zip
binutils-a86809d323cb48945798fb02f29ac9481bf5f7d9.tar.gz
binutils-a86809d323cb48945798fb02f29ac9481bf5f7d9.tar.bz2
Implement sim_core_{read,write}_word using sim_core_{read,write}_<N>.
Diffstat (limited to 'sim/common/sim-core.h')
-rw-r--r--sim/common/sim-core.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h
index 350823d..f2ba3fc 100644
--- a/sim/common/sim-core.h
+++ b/sim/common/sim-core.h
@@ -248,20 +248,23 @@ DECLARE_SIM_CORE_WRITE_N(aligned,2)
DECLARE_SIM_CORE_WRITE_N(aligned,4)
DECLARE_SIM_CORE_WRITE_N(aligned,8)
DECLARE_SIM_CORE_WRITE_N(aligned,16)
-DECLARE_SIM_CORE_WRITE_N(aligned,word)
DECLARE_SIM_CORE_WRITE_N(unaligned,1)
DECLARE_SIM_CORE_WRITE_N(unaligned,2)
DECLARE_SIM_CORE_WRITE_N(unaligned,4)
DECLARE_SIM_CORE_WRITE_N(unaligned,8)
DECLARE_SIM_CORE_WRITE_N(unaligned,16)
-DECLARE_SIM_CORE_WRITE_N(unaligned,word)
+
#define sim_core_write_1 sim_core_write_aligned_1
#define sim_core_write_2 sim_core_write_aligned_2
#define sim_core_write_4 sim_core_write_aligned_4
#define sim_core_write_16 sim_core_write_aligned_16
+#define sim_core_write_unaligned_word XCONCAT2(sim_core_write_unaligned_,WITH_TARGET_WORD_BITSIZE)
+#define sim_core_write_aligned_word XCONCAT2(sim_core_write_aligned_,WITH_TARGET_WORD_BITSIZE)
+#define sim_core_write_word XCONCAT2(sim_core_write_,WITH_TARGET_WORD_BITSIZE)
+
#undef DECLARE_SIM_CORE_WRITE_N
@@ -278,14 +281,12 @@ DECLARE_SIM_CORE_READ_N(aligned,2)
DECLARE_SIM_CORE_READ_N(aligned,4)
DECLARE_SIM_CORE_READ_N(aligned,8)
DECLARE_SIM_CORE_READ_N(aligned,16)
-DECLARE_SIM_CORE_READ_N(aligned,word)
DECLARE_SIM_CORE_READ_N(unaligned,1)
DECLARE_SIM_CORE_READ_N(unaligned,2)
DECLARE_SIM_CORE_READ_N(unaligned,4)
DECLARE_SIM_CORE_READ_N(unaligned,8)
DECLARE_SIM_CORE_READ_N(unaligned,16)
-DECLARE_SIM_CORE_READ_N(unaligned,word)
#define sim_core_read_1 sim_core_read_aligned_1
#define sim_core_read_2 sim_core_read_aligned_2
@@ -293,6 +294,10 @@ DECLARE_SIM_CORE_READ_N(unaligned,word)
#define sim_core_read_8 sim_core_read_aligned_8
#define sim_core_read_16 sim_core_read_aligned_16
+#define sim_core_read_unaligned_word XCONCAT2(sim_core_read_unaligned_,WITH_TARGET_WORD_BITSIZE)
+#define sim_core_read_aligned_word XCONCAT2(sim_core_read_aligned_,WITH_TARGET_WORD_BITSIZE)
+#define sim_core_read_word XCONCAT2(sim_core_read_,WITH_TARGET_WORD_BITSIZE)
+
#undef DECLARE_SIM_CORE_READ_N
#endif