diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-06-21 13:13:25 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-06-21 13:13:25 +0000 |
commit | 970a87a6bb8dd0ac304a55aeed219e225fbbea38 (patch) | |
tree | d9fcd4906c3964bef2239d3b3a287573ee07f803 /ops_template.h | |
parent | d8bc1fd0aeb0423074b5063c8dc94dddd7285321 (diff) |
new segment access
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@255 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'ops_template.h')
-rw-r--r-- | ops_template.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ops_template.h b/ops_template.h index ff28086f32..784c27805c 100644 --- a/ops_template.h +++ b/ops_template.h @@ -828,7 +828,7 @@ void OPPROTO glue(glue(op_bsr, SUFFIX), _T0_cc)(void) #define STRING_SUFFIX _a32 #define SI_ADDR (uint8_t *)A0 + ESI -#define DI_ADDR env->seg_cache[R_ES].base + EDI +#define DI_ADDR env->segs[R_ES].base + EDI #define INC_SI() ESI += inc #define INC_DI() EDI += inc #define CX ECX @@ -837,7 +837,7 @@ void OPPROTO glue(glue(op_bsr, SUFFIX), _T0_cc)(void) #define STRING_SUFFIX _a16 #define SI_ADDR (uint8_t *)A0 + (ESI & 0xffff) -#define DI_ADDR env->seg_cache[R_ES].base + (EDI & 0xffff) +#define DI_ADDR env->segs[R_ES].base + (EDI & 0xffff) #define INC_SI() ESI = (ESI & ~0xffff) | ((ESI + inc) & 0xffff) #define INC_DI() EDI = (EDI & ~0xffff) | ((EDI + inc) & 0xffff) #define CX (ECX & 0xffff) |