X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fm32c%2Freg.c;h=f10162e11db7b993b7eb950029067349fa1adb50;hb=de54374205650be71237ce51ef7981d30ddd78dc;hp=23677ed2247bd5bd84f3adc255c8ce4178784f35;hpb=ecd75fc8eed3bde86036141228074a20e55dcfc9;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/m32c/reg.c b/sim/m32c/reg.c index 23677ed224..f10162e11d 100644 --- a/sim/m32c/reg.c +++ b/sim/m32c/reg.c @@ -1,6 +1,6 @@ /* reg.c --- register set model for M32C simulator. -Copyright (C) 2005-2014 Free Software Foundation, Inc. +Copyright (C) 2005-2020 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of the GNU simulators. @@ -219,7 +219,7 @@ get_reg_ll (reg_id id) static int highest_sp = 0, lowest_sp = 0xffffff; void -stack_heap_stats () +stack_heap_stats (void) { printf ("heap: %08x - %08x (%d bytes)\n", heapbottom, heaptop, heaptop - heapbottom); @@ -230,10 +230,11 @@ stack_heap_stats () void put_reg (reg_id id, unsigned int v) { + reg_bank_type *b = regs.r + (FLAG_B ? 1 : 0); + if (trace > ((id != pc) ? 0 : 1)) printf ("put_reg (%s) = %0*x\n", reg_names[id], reg_bytes[id] * 2, v); - reg_bank_type *b = regs.r + (FLAG_B ? 1 : 0); switch (id) { case r0: @@ -605,7 +606,7 @@ print_flags (int f) } void -trace_register_changes () +trace_register_changes (void) { if (!trace) return; @@ -646,7 +647,7 @@ trace_register_changes () reg_bytes[id]*2, (unsigned int)regs.f); \ void -m32c_dump_all_registers () +m32c_dump_all_registers (void) { printf ("\033[36mREGS:"); DRC (r[0].r_r0, "r0", r0);