summaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-03-07 17:42:29 -0800
committerMichael Pavone <pavone@retrodev.com>2014-03-07 17:42:29 -0800
commit39d4ba1ba63c2cf4fc83959b7b5c32c125eedca5 (patch)
treeb9c23df76965ef80b7c72e798ecac67fb5106728 /backend.h
parenta87c5969394dcf435da8a1165fbb1757af78fa0c (diff)
Refactored translate_m68k so that it contains no host-cpu specific code and moved it to m68k_core.c
Diffstat (limited to 'backend.h')
-rw-r--r--backend.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/backend.h b/backend.h
index b98dc2f..af522fd 100644
--- a/backend.h
+++ b/backend.h
@@ -13,13 +13,20 @@
#define INVALID_OFFSET 0xFFFFFFFF
#define EXTENSION_WORD 0xFFFFFFFE
+#if defined(X86_32) || defined(X86_64)
typedef struct {
int32_t disp;
uint8_t mode;
uint8_t base;
uint8_t index;
- uint8_t cycles;
-} x86_ea;
+} host_ea;
+#else
+typedef struct {
+ int32_t disp;
+ uint8_t mode;
+ uint8_t base;
+} host_ea;
+#endif
typedef struct {
uint8_t *base;