diff options
author | Kevin Buettner <kevinb@redhat.com> | 2010-09-23 23:42:53 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2010-09-23 23:42:53 +0000 |
commit | be380a3ea061110105f734192593b3e5472f3941 (patch) | |
tree | 149d4ddf302e28b5c0d34a1126f5f0f50211f044 /sim/rx/rx.c | |
parent | 6607c80d6babc6e7cad8727c48069d11152d9aa7 (diff) | |
download | gdb-be380a3ea061110105f734192593b3e5472f3941.zip gdb-be380a3ea061110105f734192593b3e5472f3941.tar.gz gdb-be380a3ea061110105f734192593b3e5472f3941.tar.bz2 |
* cpu.h (reset_decoder): Declare.
* load.c (rx_load): Call `reset_decoder'.
* rx.c (reset_decoder): New function.
Diffstat (limited to 'sim/rx/rx.c')
-rw-r--r-- | sim/rx/rx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/rx/rx.c b/sim/rx/rx.c index fc12948..19b896b 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -298,6 +298,14 @@ static unsigned char *get_byte_base; static RX_Opcode_Decoded **decode_cache_base; static SI get_byte_page; +void +reset_decoder (void) +{ + get_byte_base = 0; + decode_cache_base = 0; + get_byte_page = 0; +} + static inline void maybe_get_mem_page (SI tpc) { |