mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
ppc/xics: Implement H_IPOLL using an accessor
None of the other presenter functions directly mucks with the internal state, so don't do it there either. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
9c7027ba94
commit
1cbd222055
3 changed files with 13 additions and 3 deletions
|
@ -288,6 +288,14 @@ uint32_t icp_accept(ICPState *ss)
|
|||
return xirr;
|
||||
}
|
||||
|
||||
uint32_t icp_ipoll(ICPState *ss, uint32_t *mfrr)
|
||||
{
|
||||
if (mfrr) {
|
||||
*mfrr = ss->mfrr;
|
||||
}
|
||||
return ss->xirr;
|
||||
}
|
||||
|
||||
void icp_eoi(XICSState *icp, int server, uint32_t xirr)
|
||||
{
|
||||
ICPState *ss = icp->ss + server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue