aboutsummaryrefslogtreecommitdiff
path: root/target-arm/op_mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-arm/op_mem.h')
-rw-r--r--target-arm/op_mem.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/target-arm/op_mem.h b/target-arm/op_mem.h
index 0e2e7b65ef..519544d0ef 100644
--- a/target-arm/op_mem.h
+++ b/target-arm/op_mem.h
@@ -1,24 +1,5 @@
/* ARM memory operations. */
-/* Swap T0 with memory at address T1. */
-/* ??? Is this exception safe? */
-#define MEM_SWP_OP(name, lname) \
-void OPPROTO glue(op_swp##name,MEMSUFFIX)(void) \
-{ \
- uint32_t tmp; \
- cpu_lock(); \
- tmp = glue(ld##lname,MEMSUFFIX)(T1); \
- glue(st##name,MEMSUFFIX)(T1, T0); \
- T0 = tmp; \
- cpu_unlock(); \
- FORCE_RET(); \
-}
-
-MEM_SWP_OP(b, ub)
-MEM_SWP_OP(l, l)
-
-#undef MEM_SWP_OP
-
/* Load-locked, store exclusive. */
#define EXCLUSIVE_OP(suffix, ldsuffix) \
void OPPROTO glue(op_ld##suffix##ex,MEMSUFFIX)(void) \