mirror of https://github.com/xemu-project/xemu.git
target/i386: remove CPUX86State argument from generator functions
CPUX86State argument would only be used to fetch bytes, but that has to be done before the generator function is called. So remove it, and all temptation together with it. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cd7093a7a1
commit
4228eb8cc6
|
@ -2590,7 +2590,7 @@ static void disas_insn(DisasContext *s, CPUState *cpu)
|
|||
}
|
||||
if (s->prefix & PREFIX_LOCK) {
|
||||
gen_load(s, &decode, 2, s->T1);
|
||||
decode.e.gen(s, env, &decode);
|
||||
decode.e.gen(s, &decode);
|
||||
} else {
|
||||
if (decode.op[0].unit == X86_OP_MMX) {
|
||||
compute_mmx_offset(&decode.op[0]);
|
||||
|
@ -2599,7 +2599,7 @@ static void disas_insn(DisasContext *s, CPUState *cpu)
|
|||
}
|
||||
gen_load(s, &decode, 1, s->T0);
|
||||
gen_load(s, &decode, 2, s->T1);
|
||||
decode.e.gen(s, env, &decode);
|
||||
decode.e.gen(s, &decode);
|
||||
gen_writeback(s, &decode, 0, s->T0);
|
||||
}
|
||||
|
||||
|
|
|
@ -245,7 +245,7 @@ typedef struct X86DecodedInsn X86DecodedInsn;
|
|||
typedef void (*X86DecodeFunc)(DisasContext *s, CPUX86State *env, X86OpEntry *entry, uint8_t *b);
|
||||
|
||||
/* Code generation function. */
|
||||
typedef void (*X86GenFunc)(DisasContext *s, CPUX86State *env, X86DecodedInsn *decode);
|
||||
typedef void (*X86GenFunc)(DisasContext *s, X86DecodedInsn *decode);
|
||||
|
||||
struct X86OpEntry {
|
||||
/* Based on the is_decode flags. */
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue