X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=m68kcpu.h;h=d943f94c40a279a551294222ebe70aa7b6edda5b;hb=b91e0e809dc3f63691adf6b4e94afde93100bd0b;hp=ef25ad1b156343911527f76d189f0f8e9c4a73f9;hpb=ae4e0ae9f15aa9f66d74518149687dde39f84c2d;p=pistorm diff --git a/m68kcpu.h b/m68kcpu.h index ef25ad1..d943f94 100644 --- a/m68kcpu.h +++ b/m68kcpu.h @@ -1079,7 +1079,7 @@ typedef struct { unsigned int lower; unsigned int upper; - unsigned char *data; + unsigned char *offset; } address_translation_cache; @@ -1173,7 +1173,7 @@ static inline uint m68ki_read_imm_16(void) if(pc >= cache->lower && pc < cache->upper) { REG_PC += 2; - return be16toh(((unsigned short *)(cache->data + (pc - cache->lower)))[0]); + return be16toh(((unsigned short *)(cache->offset + pc))[0]); } return m68ki_read_imm6_addr_slowpath(pc, cache); }