diff --git a/sim/ft32/ChangeLog b/sim/ft32/ChangeLog index 988413fe8de..29f661fca23 100644 --- a/sim/ft32/ChangeLog +++ b/sim/ft32/ChangeLog @@ -1,3 +1,7 @@ +2015-09-22 James Bowman + + * ft32/interp.c (cpu_mem_read): Call getchar when ea is 0x10000. + 2015-06-23 Mike Frysinger * configure: Regenerate. diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c index 404683da778..a20907c5c86 100644 --- a/sim/ft32/interp.c +++ b/sim/ft32/interp.c @@ -169,6 +169,8 @@ static uint32_t cpu_mem_read (SIM_DESC sd, uint32_t dw, uint32_t ea) /* Simulate some IO devices */ switch (ea) { + case 0x10000: + return getchar (); case 0x1fff4: /* Read the simulator cycle timer. */ return cpu->state.cycles / 100;