target-moxie: Fix pointer-to-integer conversion (MinGW-w64)
The type cast must use tcg_target_long instead of long. This makes a difference for hosts where sizeof(long) != sizeof(void *). Cc: Anthony Green <green@moxielogic.com> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Anthony Green <green@moxielogic.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
c972121512
commit
e06335b951
|
@ -133,7 +133,7 @@ static inline void gen_goto_tb(CPUMoxieState *env, DisasContext *ctx,
|
||||||
!ctx->singlestep_enabled) {
|
!ctx->singlestep_enabled) {
|
||||||
tcg_gen_goto_tb(n);
|
tcg_gen_goto_tb(n);
|
||||||
tcg_gen_movi_i32(cpu_pc, dest);
|
tcg_gen_movi_i32(cpu_pc, dest);
|
||||||
tcg_gen_exit_tb((long) tb + n);
|
tcg_gen_exit_tb((tcg_target_long)tb + n);
|
||||||
} else {
|
} else {
|
||||||
tcg_gen_movi_i32(cpu_pc, dest);
|
tcg_gen_movi_i32(cpu_pc, dest);
|
||||||
if (ctx->singlestep_enabled) {
|
if (ctx->singlestep_enabled) {
|
||||||
|
|
Loading…
Reference in a new issue