mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Compile serial only once
Push TARGET_WORDS_BIGENDIAN dependency to board level. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
d3ffc7a6e7
commit
2d48377a85
27 changed files with 183 additions and 62 deletions
|
@ -441,7 +441,11 @@ static MaltaFPGAState *malta_fpga_init(target_phys_addr_t base, qemu_irq uart_ir
|
|||
|
||||
s->display = qemu_chr_open("fpga", "vc:320x200", malta_fpga_led_init);
|
||||
|
||||
s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr, 1);
|
||||
#ifdef TARGET_WORDS_BIGENDIAN
|
||||
s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr, 1, 1);
|
||||
#else
|
||||
s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr, 1, 0);
|
||||
#endif
|
||||
|
||||
malta_fpga_reset(s);
|
||||
qemu_register_reset(malta_fpga_reset, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue