changeset a5add07e066c in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a5add07e066c
description:
ARM: Update m5op assembly for thumb compilation.
diffstat:
util/m5/m5op_arm.S | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 4cc63185478b -r a5add07e066c util/m5/m5op_arm.S
--- a/util/m5/m5op_arm.S Thu May 10 18:04:26 2012 -0500
+++ b/util/m5/m5op_arm.S Thu May 10 18:04:26 2012 -0500
@@ -41,14 +41,26 @@
* Ali Saidi
* Chander Sudanthi
*/
+.syntax unified
+#ifdef __thumb__
+.thumb
+#endif
#define m5_op 0xEE
#include "m5ops.h"
+#ifdef __thumb__
+#define INST(op, ra, rb, func) \
+ .short (((op) << 8) | (func)); \
+ .short (((ra) << 12) | (0x1 << 8) | (0x1 << 4) | (rb))
+/* m5ops m5func */
+/* ra coproc 1 op=1 rb */
+#else
#define INST(op, ra, rb, func) \
.long (((op) << 24) | ((func) << 16) | ((ra) << 12) | (0x1 << 8) |
(0x1 << 4) | (rb))
/* m5ops m5func ra coproc 1
op=1 rb */
+#endif
#define LEAF(func) \
.globl func; \
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev