hw/mips: Declare all length properties as unsigned
Some length properties are signed, other unsigned:
hw/mips/cps.c:183: DEFINE_PROP_UINT32("num-vp", MIPSCPSState, num_vp, 1),
hw/mips/cps.c:184: DEFINE_PROP_UINT32("num-irq", MIPSCPSState, num_irq, 256),
hw/misc/mips_cmgcr.c:215: DEFINE_PROP_INT32("num-vp", MIPSGCRState, num_vps, 1),
hw/misc/mips_cpc.c:167: DEFINE_PROP_UINT32("num-vp", MIPSCPCState, num_vp, 0x1),
hw/misc/mips_itu.c:552: DEFINE_PROP_INT32("num-fifo", MIPSITUState, num_fifo,
hw/misc/mips_itu.c:554: DEFINE_PROP_INT32("num-semaphores", MIPSITUState,
Since negative values are not used (the minimum is '0'),
unify by declaring all properties as unsigned.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230203113650.78146-9-philmd@linaro.org>
This commit is contained in:
parent
dcebb36eb0
commit
10997f2d1d
9 changed files with 18 additions and 18 deletions
|
|
@ -211,8 +211,8 @@ struct MIPSGICState {
|
|||
/* GIC VP Timer */
|
||||
MIPSGICTimerState *gic_timer;
|
||||
|
||||
int32_t num_vps;
|
||||
int32_t num_irq;
|
||||
uint32_t num_vps;
|
||||
uint32_t num_irq;
|
||||
};
|
||||
|
||||
#endif /* MIPS_GIC_H */
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ struct MIPSGCRState {
|
|||
SysBusDevice parent_obj;
|
||||
|
||||
int32_t gcr_rev;
|
||||
int32_t num_vps;
|
||||
uint32_t num_vps;
|
||||
hwaddr gcr_base;
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion *cpc_mr;
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ struct MIPSITUState {
|
|||
SysBusDevice parent_obj;
|
||||
/*< public >*/
|
||||
|
||||
int32_t num_fifo;
|
||||
int32_t num_semaphores;
|
||||
uint32_t num_fifo;
|
||||
uint32_t num_semaphores;
|
||||
|
||||
/* ITC Storage */
|
||||
ITCStorageCell *cell;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue