mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/ppc: Add msgsnd/p and DPDES SMT support
Doorbells in SMT need to coordinate msgsnd/msgclr and DPDES access from multiple threads that affect the same state. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
c5d98a7b3d
commit
d24e80b2ae
5 changed files with 78 additions and 11 deletions
|
@ -1436,6 +1436,12 @@ int ppc_cpu_pir(PowerPCCPU *cpu)
|
|||
return env->spr_cb[SPR_PIR].default_value;
|
||||
}
|
||||
|
||||
int ppc_cpu_tir(PowerPCCPU *cpu)
|
||||
{
|
||||
CPUPPCState *env = &cpu->env;
|
||||
return env->spr_cb[SPR_TIR].default_value;
|
||||
}
|
||||
|
||||
PowerPCCPU *ppc_get_vcpu_by_pir(int pir)
|
||||
{
|
||||
CPUState *cs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue