diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-19 06:39:21 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-19 06:39:21 +0000 |
commit | a276b6f057a0f2a6e1432117a55614d3df6148f5 (patch) | |
tree | 99ff3385e8fb5a0c469b287f1bc4d91f0c66b0c3 /sim/v850/sim-main.h | |
parent | 4410c4b9254f6b29bab904a01cddd0ded8f51365 (diff) | |
download | gdb-a276b6f057a0f2a6e1432117a55614d3df6148f5.zip gdb-a276b6f057a0f2a6e1432117a55614d3df6148f5.tar.gz gdb-a276b6f057a0f2a6e1432117a55614d3df6148f5.tar.bz2 |
Clean up tracing for Bcond & jmp insns.
Fix computation of disp16 and disp22.
Clean up tracing of sld* insns.
Diffstat (limited to 'sim/v850/sim-main.h')
-rw-r--r-- | sim/v850/sim-main.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h index 99b508c..5f08889 100644 --- a/sim/v850/sim-main.h +++ b/sim/v850/sim-main.h @@ -384,6 +384,43 @@ do { \ } \ } while (0) +#define TRACE_LD(ADDR,RESULT) \ +do { \ + if (TRACE_MEMORY_P (CPU)) { \ + trace_module = "memory"; \ + trace_pc = cia; \ + trace_name = itable[MY_INDEX].name; \ + trace_values[0] = (ADDR); \ + trace_num_values = 1; \ + trace_result (1, (RESULT)); \ + } \ +} while (0) + +/* start-sanitize-v850e */ +#define TRACE_LD_NAME(NAME, ADDR,RESULT) \ +do { \ + if (TRACE_MEMORY_P (CPU)) { \ + trace_module = "memory"; \ + trace_pc = cia; \ + trace_name = (NAME); \ + trace_values[0] = (ADDR); \ + trace_num_values = 1; \ + trace_result (1, (RESULT)); \ + } \ +} while (0) + +/* end-sanitize-v850e */ +#define TRACE_ST(ADDR,RESULT) \ +do { \ + if (TRACE_MEMORY_P (CPU)) { \ + trace_module = "memory"; \ + trace_pc = cia; \ + trace_name = itable[MY_INDEX].name; \ + trace_values[0] = (ADDR); \ + trace_num_values = 1; \ + trace_result (1, (RESULT)); \ + } \ +} while (0) #else #define trace_input(NAME, IN1, IN2) @@ -401,6 +438,10 @@ do { \ #define TRACE_BRANCH1(IN1) #define TRACE_BRANCH2(IN1, IN2) #define TRACE_BRANCH2(IN1, IN2, IN3) + +#define TRACE_LD(ADDR,RESULT) +#define TRACE_ST(ADDR,RESULT) + #endif |