mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
ppc: Initial HDEC support
The current behaviour isn't completely right, as for the DEC, we don't properly re-arm when wrapping around, but I will fix this in a separate patch. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [clg: fixed checkpatch.pl errors ] Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
b378bb0948
commit
4b236b621b
5 changed files with 66 additions and 15 deletions
|
@ -102,6 +102,16 @@ void helper_store_decr(CPUPPCState *env, target_ulong val)
|
|||
cpu_ppc_store_decr(env, val);
|
||||
}
|
||||
|
||||
target_ulong helper_load_hdecr(CPUPPCState *env)
|
||||
{
|
||||
return cpu_ppc_load_hdecr(env);
|
||||
}
|
||||
|
||||
void helper_store_hdecr(CPUPPCState *env, target_ulong val)
|
||||
{
|
||||
cpu_ppc_store_hdecr(env, val);
|
||||
}
|
||||
|
||||
target_ulong helper_load_40x_pit(CPUPPCState *env)
|
||||
{
|
||||
return load_40x_pit(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue