From: Scott Wood Date: Thu, 13 Dec 2012 16:12:04 +0000 (+0000) Subject: openpic: s/opp->nb_irqs -1/opp->nb_cpus - 1/ X-Git-Tag: v1.4.0-rc0~200^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26a7b38331dc14893a66fbe78f34afab153d6b2;p=thirdparty%2Fqemu.git 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 Signed-off-by: Alexander Graf --- diff --git a/hw/openpic.c b/hw/openpic.c index 337dbf5a44e..10dbdf78639 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -440,8 +440,8 @@ static void openpic_reset(DeviceState *d) opp->glbc = GLBC_RESET; /* Initialise controller registers */ - opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) | - ((opp->nb_cpus -1) << FREP_NCPU_SHIFT) | + opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) | + ((opp->nb_cpus - 1) << FREP_NCPU_SHIFT) | (opp->vid << FREP_VID_SHIFT); opp->pint = 0;