lm32 fixes and new milkymist hardware support
Hi Anthony,
here is a patch for target-lm32, which is broken with the current master.
Additionally, support for the new uart of the milkymist SoC is added.
The following changes since commit ef4f97cba2a354656b00eb8659bf61ab2321fa4e:
Merge remote-tracking branch 'qemu-kvm-tmp/memory/core' into staging (2011-09-15 13:33:03 -0500)
are available in the git repository at:
http://git.serverraum.org/git/mw/qemu-lm32.git for-upstream
Michael Walle (3):
lm32: add missing qemu_init_vcpu() call
milkymist_uart: support new core version
milkymist: new interrupt map
hw/milkymist-hw.h | 5 +-- hw/milkymist-uart.c | 72 +++++++++++++++++++++++++++++++++++++++++++------ hw/milkymist.c | 14 +++++----- target-lm32/helper.c | 1 + trace-events | 4 +- 5 files changed, 75 insertions(+), 21 deletions(-)
PATCH 1/3 lm32: add missing qemu_init_vcpu() call
--- target-lm32/helper.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
target-lm32/helper.c +1 -0
@@ -218,6 +218,7 @@ CPUState *cpu_lm32_init(const char *cpu_model)cpu_exec_init (env);cpu_reset (env); +qemu_init_vcpu (env);if (!tcg_initialized) { tcg_initialized =1 ;
Signature · 1 line
1.7.2.5
PATCH 2/3 milkymist_uart: support new core version
In reply to Michael WalleThe new version of the uart core introduces status and control bits.
--- hw/milkymist-hw.h | 5 +-- hw/milkymist-uart.c | 72 ++++++++++++++++++++++++++++++++++++++++++++------ hw/milkymist.c | 2 +- trace-events | 4 +- 4 files changed, 68 insertions(+), 15 deletions(-)
hw/milkymist-hw.h +2 -3
@@ -5,15 +5,14 @@#include "qdev-addr.h" static inline DeviceState *milkymist_uart_create (target_phys_addr_t base, -qemu_irq rx_irq,qemu_irq tx_irq) +qemu_irq irq) {DeviceState *dev; dev =qdev_create (NULL ,"milkymist-uart" );qdev_init_nofail (dev);sysbus_mmio_map (sysbus_from_qdev (dev),0 , base); -sysbus_connect_irq (sysbus_from_qdev (dev),0 , rx_irq); -sysbus_connect_irq (sysbus_from_qdev (dev),1 , tx_irq); +sysbus_connect_irq (sysbus_from_qdev (dev),0 , irq);return dev; }
hw/milkymist-uart.c +63 -9
135 lines not on this page · raw message
hw/milkymist.c +1 -1
@@ -146,7 +146,7 @@ milkymist_init(ram_addr_t ram_size_not_used,exit (1 ); } -milkymist_uart_create (0x60000000 , irq[0 ], irq[1 ]); +milkymist_uart_create (0x60000000 , irq[0 ]);milkymist_sysctl_create (0x60001000 , irq[2 ], irq[3 ], irq[4 ],80000000 ,0x10014d31 ,0x0000041f ,0x00000001 );milkymist_hpdmc_create (0x60002000 );
trace-events +2 -2
@@ -443,8 +443,8 @@ milkymist_tmu2_pulse_irq(void) "Pulse IRQ" # hw/milkymist-uart.c milkymist_uart_memory_read(uint32_t addr, uint32_t value) "addr %08x value %08x" milkymist_uart_memory_write(uint32_t addr, uint32_t value) "addr %08x value %08x" -milkymist_uart_pulse_irq_rx(void) "Pulse IRQ RX" -milkymist_uart_pulse_irq_tx(void) "Pulse IRQ TX" +milkymist_uart_raise_irq(void) "Raise IRQ" +milkymist_uart_lower_irq(void) "Lower IRQ" # hw/milkymist-vgafb.c milkymist_vgafb_memory_read(uint32_t addr, uint32_t value) "addr %08x value %08x"
Signature · 1 line
1.7.2.5
PATCH 3/3 milkymist: new interrupt map
In reply to Michael WalleDue to the new uart core version the interrupt mapping has changed.
--- hw/milkymist.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
hw/milkymist.c +6 -6
@@ -147,16 +147,16 @@ milkymist_init(ram_addr_t ram_size_not_used, }milkymist_uart_create (0x60000000 , irq[0 ]); -milkymist_sysctl_create (0x60001000 , irq[2 ], irq[3 ], irq[4 ], +milkymist_sysctl_create (0x60001000 , irq[1 ], irq[2 ], irq[3 ],80000000 ,0x10014d31 ,0x0000041f ,0x00000001 );milkymist_hpdmc_create (0x60002000 );milkymist_vgafb_create (0x60003000 ,0x40000000 ,0x0fffffff );milkymist_memcard_create (0x60004000 ); -milkymist_ac97_create (0x60005000 , irq[5 ], irq[6 ], irq[7 ], irq[8 ]); -milkymist_pfpu_create (0x60006000 , irq[9 ]); -milkymist_tmu2_create (0x60007000 , irq[10 ]); -milkymist_minimac2_create (0x60008000 ,0x30000000 , irq[11 ], irq[12 ]); -milkymist_softusb_create (0x6000f000 , irq[17 ], +milkymist_ac97_create (0x60005000 , irq[4 ], irq[5 ], irq[6 ], irq[7 ]); +milkymist_pfpu_create (0x60006000 , irq[8 ]); +milkymist_tmu2_create (0x60007000 , irq[9 ]); +milkymist_minimac2_create (0x60008000 ,0x30000000 , irq[10 ], irq[11 ]); +milkymist_softusb_create (0x6000f000 , irq[15 ],0x20000000 ,0x1000 ,0x20020000 ,0x2000 );/* make sure juart isn't the first chardev */
Signature · 1 line
1.7.2.5
Quoted 7 lines · Michael Walle
Hi Anthony,
here is a patch for target-lm32, which is broken with the current master.
Additionally, support for the new uart of the milkymist SoC is added.
Quoted 7 lines
The following changes since commit
ef4f97cba2a354656b00eb8659bf61ab2321fa4e:Merge remote-tracking branch 'qemu-kvm-tmp/memory/core' into staging (2011-09-15 13:33:03 -0500)are available in the git repository at:
http://git.serverraum.org/git/mw/qemu-lm32.git for-upstream
Please publish a git URI. Fetching over HTTP is painful, particularly when the connection to the server isn't very good.
Regards,
Anthony Liguori
Quoted 14 lines
Michael Walle (3):
lm32: add missingqemu_init_vcpu()call
milkymist_uart: support new core version
milkymist: new interrupt maphw/milkymist-hw.h | 5 +-- hw/milkymist-uart.c | 72 +++++++++++++++++++++++++++++++++++++++++++------ hw/milkymist.c | 14 +++++----- target-lm32/helper.c | 1 + trace-events | 4 +- 5 files changed, 75 insertions(+), 21 deletions(-)
Hi Anthony,
Quoted 2 lines
Please publish a git URI. Fetching over HTTP is painful, particularly when the connection to the server isn't very good.
The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7:
etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200)
are available in the git repository at:
git://git.serverraum.org/git/mw/qemu-lm32.git for-upstream
Michael Walle (3):
lm32: add missing qemu_init_vcpu() call
milkymist_uart: support new core version
milkymist: new interrupt map
hw/milkymist-hw.h | 5 +-- hw/milkymist-uart.c | 72 +++++++++++++++++++++++++++++++++++++++++++------ hw/milkymist.c | 14 +++++----- target-lm32/helper.c | 1 + trace-events | 4 +- 5 files changed, 75 insertions(+), 21 deletions(-)
Quoted 11 lines · Michael Walle
Hi Anthony,
Quoted 2 lines
Please publish a git URI. Fetching over HTTP is painful, particularly when the connection to the server isn't very good.
The following changes since commit
d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7:etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200)
are available in the git repository at:
git://git.serverraum.org/git/mw/qemu-lm32.git for-upstream
Thanks, pulled.
Quoted 13 lines
Michael Walle (3):
lm32: add missingqemu_init_vcpu()call
milkymist_uart: support new core version
milkymist: new interrupt maphw/milkymist-hw.h | 5 +--
hw/milkymist-uart.c | 72 +++++++++++++++++++++++++++++++++++++++++++------hw/milkymist.c| 14 +++++-----
target-lm32/helper.c | 1 +
trace-events | 4 +-5 files changed, 75 insertions(+), 21 deletions(-)