Line 1156... |
Line 1156... |
printf_unfiltered ("%s.%s = SPR%i_%i = %i(%x)\n", or1k_group_names[group],
|
printf_unfiltered ("%s.%s = SPR%i_%i = %i(%x)\n", or1k_group_names[group],
|
or1k_spr_register_name (SPR_REG(group, index)), group, index, value, value);
|
or1k_spr_register_name (SPR_REG(group, index)), group, index, value, value);
|
}
|
}
|
}
|
}
|
|
|
|
void
|
|
info_trace_command (args, from_tty)
|
|
char *args;
|
|
int from_tty;
|
|
{
|
|
unsigned char i;
|
|
int j;
|
|
printf_filtered (" add insn res time\n");
|
|
i = or1k_read_spr_reg (SPR_REG(6, 255));
|
|
for (j = 0; j < 256; j++, i++)
|
|
printf_filtered ("%03d %03u %08x %08x %08x %08x\n", 255 - j, i,
|
|
or1k_read_spr_reg (SPR_REG(6, 0x100 + i)),
|
|
or1k_read_spr_reg (SPR_REG(6, 0x200 + i)),
|
|
or1k_read_spr_reg (SPR_REG(6, 0x300 + i)),
|
|
or1k_read_spr_reg (SPR_REG(6, 0x400 + i)));
|
|
|
|
}
|
|
|
/* Set SPR register. */
|
/* Set SPR register. */
|
|
|
void
|
void
|
spr_command (args, from_tty)
|
spr_command (args, from_tty)
|
char *args;
|
char *args;
|
Line 2268... |
Line 2286... |
else
|
else
|
tm_print_insn = print_insn_little_or32;
|
tm_print_insn = print_insn_little_or32;
|
|
|
/* Commands to show and set sprs. */
|
/* Commands to show and set sprs. */
|
add_info ("spr", info_spr_command, "Show information about the spr registers.");
|
add_info ("spr", info_spr_command, "Show information about the spr registers.");
|
|
add_info ("trace", info_trace_command, "Display trace buffer contents.");
|
add_com ("spr", class_support, spr_command, "Set specified SPR register.");
|
add_com ("spr", class_support, spr_command, "Set specified SPR register.");
|
|
|
/* hwatch command. */
|
/* hwatch command. */
|
add_com ("hwatch", class_breakpoint, hwatch_command, "Set hardware watch"
|
add_com ("hwatch", class_breakpoint, hwatch_command, "Set hardware watch"
|
"point.\nExample: ($LEA == my_var)&&($LDATA < 50)||($SEA == my_"
|
"point.\nExample: ($LEA == my_var)&&($LDATA < 50)||($SEA == my_"
|