mirror of https://gitee.com/openkylin/qemu.git
hw/mips/gt64xxx_pci: Fix multiline comment syntax
Since commit 8c06fbdf36
checkpatch.pl enforce a new multiline
comment syntax. Since we'll move this code around, fix its style
first.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <20190624222844.26584-2-f4bug@amsat.org>
This commit is contained in:
parent
474f3938d7
commit
c47aee3572
|
@ -248,10 +248,11 @@ typedef struct GT64120State {
|
||||||
} GT64120State;
|
} GT64120State;
|
||||||
|
|
||||||
/* Adjust range to avoid touching space which isn't mappable via PCI */
|
/* Adjust range to avoid touching space which isn't mappable via PCI */
|
||||||
/* XXX: Hardcoded values for Malta: 0x1e000000 - 0x1f100000
|
/*
|
||||||
0x1fc00000 - 0x1fd00000 */
|
* XXX: Hardcoded values for Malta: 0x1e000000 - 0x1f100000
|
||||||
static void check_reserved_space (hwaddr *start,
|
* 0x1fc00000 - 0x1fd00000
|
||||||
hwaddr *length)
|
*/
|
||||||
|
static void check_reserved_space(hwaddr *start, hwaddr *length)
|
||||||
{
|
{
|
||||||
hwaddr begin = *start;
|
hwaddr begin = *start;
|
||||||
hwaddr end = *start + *length;
|
hwaddr end = *start + *length;
|
||||||
|
@ -650,8 +651,10 @@ static void gt64120_writel (void *opaque, hwaddr addr,
|
||||||
case GT_SDRAM_B1:
|
case GT_SDRAM_B1:
|
||||||
case GT_SDRAM_B2:
|
case GT_SDRAM_B2:
|
||||||
case GT_SDRAM_B3:
|
case GT_SDRAM_B3:
|
||||||
/* We don't simulate electrical parameters of the SDRAM.
|
/*
|
||||||
Accept, but ignore the values. */
|
* We don't simulate electrical parameters of the SDRAM.
|
||||||
|
* Accept, but ignore the values.
|
||||||
|
*/
|
||||||
s->regs[saddr] = val;
|
s->regs[saddr] = val;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -674,8 +677,10 @@ static uint64_t gt64120_readl (void *opaque,
|
||||||
|
|
||||||
/* CPU Configuration */
|
/* CPU Configuration */
|
||||||
case GT_MULTI:
|
case GT_MULTI:
|
||||||
/* Only one GT64xxx is present on the CPU bus, return
|
/*
|
||||||
the initial value */
|
* Only one GT64xxx is present on the CPU bus, return
|
||||||
|
* the initial value.
|
||||||
|
*/
|
||||||
val = s->regs[saddr];
|
val = s->regs[saddr];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -685,17 +690,18 @@ static uint64_t gt64120_readl (void *opaque,
|
||||||
case GT_CPUERR_DATALO:
|
case GT_CPUERR_DATALO:
|
||||||
case GT_CPUERR_DATAHI:
|
case GT_CPUERR_DATAHI:
|
||||||
case GT_CPUERR_PARITY:
|
case GT_CPUERR_PARITY:
|
||||||
/* Emulated memory has no error, always return the initial
|
/* Emulated memory has no error, always return the initial values. */
|
||||||
values */
|
|
||||||
val = s->regs[saddr];
|
val = s->regs[saddr];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* CPU Sync Barrier */
|
/* CPU Sync Barrier */
|
||||||
case GT_PCI0SYNC:
|
case GT_PCI0SYNC:
|
||||||
case GT_PCI1SYNC:
|
case GT_PCI1SYNC:
|
||||||
/* Reading those register should empty all FIFO on the PCI
|
/*
|
||||||
bus, which are not emulated. The return value should be
|
* Reading those register should empty all FIFO on the PCI
|
||||||
a random value that should be ignored. */
|
* bus, which are not emulated. The return value should be
|
||||||
|
* a random value that should be ignored.
|
||||||
|
*/
|
||||||
val = 0xc000ffee;
|
val = 0xc000ffee;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -705,8 +711,7 @@ static uint64_t gt64120_readl (void *opaque,
|
||||||
case GT_ECC_MEM:
|
case GT_ECC_MEM:
|
||||||
case GT_ECC_CALC:
|
case GT_ECC_CALC:
|
||||||
case GT_ECC_ERRADDR:
|
case GT_ECC_ERRADDR:
|
||||||
/* Emulated memory has no error, always return the initial
|
/* Emulated memory has no error, always return the initial values. */
|
||||||
values */
|
|
||||||
val = s->regs[saddr];
|
val = s->regs[saddr];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -785,8 +790,10 @@ static uint64_t gt64120_readl (void *opaque,
|
||||||
case GT_SDRAM_B1:
|
case GT_SDRAM_B1:
|
||||||
case GT_SDRAM_B2:
|
case GT_SDRAM_B2:
|
||||||
case GT_SDRAM_B3:
|
case GT_SDRAM_B3:
|
||||||
/* We don't simulate electrical parameters of the SDRAM.
|
/*
|
||||||
Just return the last written value. */
|
* We don't simulate electrical parameters of the SDRAM.
|
||||||
|
* Just return the last written value.
|
||||||
|
*/
|
||||||
val = s->regs[saddr];
|
val = s->regs[saddr];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -980,8 +987,7 @@ static void gt64120_pci_set_irq(void *opaque, int irq_num, int level)
|
||||||
/* XXX: optimize */
|
/* XXX: optimize */
|
||||||
pic_irq = piix4_dev->config[0x60 + irq_num];
|
pic_irq = piix4_dev->config[0x60 + irq_num];
|
||||||
if (pic_irq < 16) {
|
if (pic_irq < 16) {
|
||||||
/* The pic level is the logical OR of all the PCI irqs mapped
|
/* The pic level is the logical OR of all the PCI irqs mapped to it. */
|
||||||
to it */
|
|
||||||
pic_level = 0;
|
pic_level = 0;
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
if (pic_irq == piix4_dev->config[0x60 + i])
|
if (pic_irq == piix4_dev->config[0x60 + i])
|
||||||
|
|
Loading…
Reference in New Issue