mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/mips/cps: enable ITU for multithreading processors
Make ITU available in the system if CPU supports multithreading and is part of CPS. Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
This commit is contained in:
parent
0d74a222c2
commit
408294352a
2 changed files with 34 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/misc/mips_cmgcr.h"
|
||||
#include "hw/misc/mips_cpc.h"
|
||||
#include "hw/misc/mips_itu.h"
|
||||
|
||||
#define TYPE_MIPS_CPS "mips-cps"
|
||||
#define MIPS_CPS(obj) OBJECT_CHECK(MIPSCPSState, (obj), TYPE_MIPS_CPS)
|
||||
|
@ -37,6 +38,7 @@ typedef struct MIPSCPSState {
|
|||
MemoryRegion container;
|
||||
MIPSGCRState gcr;
|
||||
MIPSCPCState cpc;
|
||||
MIPSITUState itu;
|
||||
} MIPSCPSState;
|
||||
|
||||
qemu_irq get_cps_irq(MIPSCPSState *cps, int pin_number);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue