mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
PowerPC merge: real time TB and decrementer - faster and simpler exception handling (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@841 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4a0fb71e67
commit
9fddaa0c0c
14 changed files with 475 additions and 309 deletions
24
monitor.c
24
monitor.c
|
@ -589,6 +589,24 @@ static int monitor_get_xer (struct MonitorDef *md)
|
|||
(cpu_single_env->xer[XER_CA] << XER_CA) |
|
||||
(cpu_single_env->xer[XER_BC] << XER_BC);
|
||||
}
|
||||
|
||||
uint32_t cpu_ppc_load_decr (CPUState *env);
|
||||
static int monitor_get_decr (struct MonitorDef *md)
|
||||
{
|
||||
return cpu_ppc_load_decr(cpu_single_env);
|
||||
}
|
||||
|
||||
uint32_t cpu_ppc_load_tbu (CPUState *env);
|
||||
static int monitor_get_tbu (struct MonitorDef *md)
|
||||
{
|
||||
return cpu_ppc_load_tbu(cpu_single_env);
|
||||
}
|
||||
|
||||
uint32_t cpu_ppc_load_tbl (CPUState *env);
|
||||
static int monitor_get_tbl (struct MonitorDef *md)
|
||||
{
|
||||
return cpu_ppc_load_tbl(cpu_single_env);
|
||||
}
|
||||
#endif
|
||||
|
||||
static MonitorDef monitor_defs[] = {
|
||||
|
@ -651,12 +669,12 @@ static MonitorDef monitor_defs[] = {
|
|||
{ "nip|pc", offsetof(CPUState, nip) },
|
||||
{ "lr", offsetof(CPUState, lr) },
|
||||
{ "ctr", offsetof(CPUState, ctr) },
|
||||
{ "decr", offsetof(CPUState, decr) },
|
||||
{ "decr", 0, &monitor_get_decr, },
|
||||
{ "ccr", 0, &monitor_get_ccr, },
|
||||
{ "msr", 0, &monitor_get_msr, },
|
||||
{ "xer", 0, &monitor_get_xer, },
|
||||
{ "tbu", offsetof(CPUState, tb[0]) },
|
||||
{ "tbl", offsetof(CPUState, tb[1]) },
|
||||
{ "tbu", 0, &monitor_get_tbu, },
|
||||
{ "tbl", 0, &monitor_get_tbl, },
|
||||
{ "sdr1", offsetof(CPUState, sdr1) },
|
||||
{ "sr0", offsetof(CPUState, sr[0]) },
|
||||
{ "sr1", offsetof(CPUState, sr[1]) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue