mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
ESCC: swap the two CharDriverState arguments
Swap the two CharDriverState arguments so that the first argument corresponds to the channel A and the second argument to the channel B. Modify hw/sun4m.c accordingly. This fixes the order of the serial ports on the PPC machines. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6284 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6b4079f843
commit
f5cbc474e8
3 changed files with 8 additions and 8 deletions
|
@ -719,8 +719,8 @@ static int escc_load(QEMUFile *f, void *opaque, int version_id)
|
|||
|
||||
}
|
||||
|
||||
int escc_init(target_phys_addr_t base, qemu_irq irq, CharDriverState *chr1,
|
||||
CharDriverState *chr2, int clock, int it_shift)
|
||||
int escc_init(target_phys_addr_t base, qemu_irq irq, CharDriverState *chrA,
|
||||
CharDriverState *chrB, int clock, int it_shift)
|
||||
{
|
||||
int escc_io_memory, i;
|
||||
SerialState *s;
|
||||
|
@ -737,8 +737,8 @@ int escc_init(target_phys_addr_t base, qemu_irq irq, CharDriverState *chr1,
|
|||
escc_io_memory);
|
||||
|
||||
s->it_shift = it_shift;
|
||||
s->chn[0].chr = chr1;
|
||||
s->chn[1].chr = chr2;
|
||||
s->chn[0].chr = chrB;
|
||||
s->chn[1].chr = chrA;
|
||||
s->chn[0].disabled = 0;
|
||||
s->chn[1].disabled = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue