Revision 9fddaa0c monitor.c
b/monitor.c | ||
---|---|---|
589 | 589 |
(cpu_single_env->xer[XER_CA] << XER_CA) | |
590 | 590 |
(cpu_single_env->xer[XER_BC] << XER_BC); |
591 | 591 |
} |
592 |
|
|
593 |
uint32_t cpu_ppc_load_decr (CPUState *env); |
|
594 |
static int monitor_get_decr (struct MonitorDef *md) |
|
595 |
{ |
|
596 |
return cpu_ppc_load_decr(cpu_single_env); |
|
597 |
} |
|
598 |
|
|
599 |
uint32_t cpu_ppc_load_tbu (CPUState *env); |
|
600 |
static int monitor_get_tbu (struct MonitorDef *md) |
|
601 |
{ |
|
602 |
return cpu_ppc_load_tbu(cpu_single_env); |
|
603 |
} |
|
604 |
|
|
605 |
uint32_t cpu_ppc_load_tbl (CPUState *env); |
|
606 |
static int monitor_get_tbl (struct MonitorDef *md) |
|
607 |
{ |
|
608 |
return cpu_ppc_load_tbl(cpu_single_env); |
|
609 |
} |
|
592 | 610 |
#endif |
593 | 611 |
|
594 | 612 |
static MonitorDef monitor_defs[] = { |
... | ... | |
651 | 669 |
{ "nip|pc", offsetof(CPUState, nip) }, |
652 | 670 |
{ "lr", offsetof(CPUState, lr) }, |
653 | 671 |
{ "ctr", offsetof(CPUState, ctr) }, |
654 |
{ "decr", offsetof(CPUState, decr) },
|
|
672 |
{ "decr", 0, &monitor_get_decr, },
|
|
655 | 673 |
{ "ccr", 0, &monitor_get_ccr, }, |
656 | 674 |
{ "msr", 0, &monitor_get_msr, }, |
657 | 675 |
{ "xer", 0, &monitor_get_xer, }, |
658 |
{ "tbu", offsetof(CPUState, tb[0]) },
|
|
659 |
{ "tbl", offsetof(CPUState, tb[1]) },
|
|
676 |
{ "tbu", 0, &monitor_get_tbu, },
|
|
677 |
{ "tbl", 0, &monitor_get_tbl, },
|
|
660 | 678 |
{ "sdr1", offsetof(CPUState, sdr1) }, |
661 | 679 |
{ "sr0", offsetof(CPUState, sr[0]) }, |
662 | 680 |
{ "sr1", offsetof(CPUState, sr[1]) }, |
Also available in: Unified diff