25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: debugger.c,v 1.123 2005/10/26 14:37:01 debug Exp $ |
* $Id: debugger.c,v 1.125 2005/11/13 00:14:06 debug Exp $ |
29 |
* |
* |
30 |
* Single-step debugger. |
* Single-step debugger. |
31 |
* |
* |
556 |
(long long)mem->dev_length[i]); |
(long long)mem->dev_length[i]); |
557 |
if (mem->dev_flags[i]) { |
if (mem->dev_flags[i]) { |
558 |
printf(" ("); |
printf(" ("); |
559 |
if (mem->dev_flags[i] & MEM_DYNTRANS_OK) |
if (mem->dev_flags[i] & DM_DYNTRANS_OK) |
560 |
printf("DYNTRANS R"); |
printf("DYNTRANS R"); |
561 |
if (mem->dev_flags[i] & MEM_DYNTRANS_WRITE_OK) |
if (mem->dev_flags[i] & DM_DYNTRANS_WRITE_OK) |
562 |
printf("+W"); |
printf("+W"); |
563 |
printf(")"); |
printf(")"); |
564 |
} |
} |
1378 |
*/ |
*/ |
1379 |
static void debugger_cmd_trace(struct machine *m, char *cmd_line) |
static void debugger_cmd_trace(struct machine *m, char *cmd_line) |
1380 |
{ |
{ |
1381 |
int i, toggle = 1; |
int toggle = 1; |
1382 |
int previous_mode = old_show_trace_tree; |
int previous_mode = old_show_trace_tree; |
1383 |
|
|
1384 |
if (cmd_line[0] != '\0') { |
if (cmd_line[0] != '\0') { |
1422 |
if (m->bintrans_enable && old_show_trace_tree) |
if (m->bintrans_enable && old_show_trace_tree) |
1423 |
printf("NOTE: the trace tree functionality doesn't " |
printf("NOTE: the trace tree functionality doesn't " |
1424 |
"work very well with bintrans!\n"); |
"work very well with bintrans!\n"); |
|
|
|
|
/* Clear translations: */ |
|
|
for (i=0; i<m->ncpus; i++) |
|
|
if (m->cpus[i]->translation_cache != NULL) |
|
|
cpu_create_or_reset_tc(m->cpus[i]); |
|
1425 |
} |
} |
1426 |
|
|
1427 |
|
|
2101 |
return; |
return; |
2102 |
} |
} |
2103 |
|
|
2104 |
|
/* |
2105 |
|
* Clear all dyntrans translations, because otherwise things would |
2106 |
|
* become to complex to keep in sync. |
2107 |
|
*/ |
2108 |
|
for (i=0; i<debugger_machine->ncpus; i++) |
2109 |
|
if (debugger_machine->cpus[i]->translation_cache != NULL) |
2110 |
|
cpu_create_or_reset_tc(debugger_machine->cpus[i]); |
2111 |
|
|
2112 |
exit_debugger = 0; |
exit_debugger = 0; |
2113 |
|
|
2114 |
while (!exit_debugger) { |
while (!exit_debugger) { |