mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
openpic: s/opp->nb_irqs -1/opp->nb_cpus - 1/
"opp->nb_irqs-1" would have been a minor coding style error, but putting in one space but not the other makes it look confusingly like a numeric literal "-1". Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
0d4046833b
commit
a26a7b3833
1 changed files with 2 additions and 2 deletions
|
@ -440,8 +440,8 @@ static void openpic_reset(DeviceState *d)
|
||||||
|
|
||||||
opp->glbc = GLBC_RESET;
|
opp->glbc = GLBC_RESET;
|
||||||
/* Initialise controller registers */
|
/* Initialise controller registers */
|
||||||
opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) |
|
opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) |
|
||||||
((opp->nb_cpus -1) << FREP_NCPU_SHIFT) |
|
((opp->nb_cpus - 1) << FREP_NCPU_SHIFT) |
|
||||||
(opp->vid << FREP_VID_SHIFT);
|
(opp->vid << FREP_VID_SHIFT);
|
||||||
|
|
||||||
opp->pint = 0;
|
opp->pint = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue