[Qemu-devel] [PATCH 1/2] microblaze: Support setting of TLS ptr

2012-10-17 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- linux-user/syscall.c|2 ++ target-microblaze/cpu.h |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 471d060..c6a6337 100644 --- a/linux-user/syscall.c

[Qemu-devel] [PATCH 2/2] microblaze: Update PC before simulating syscall

2012-10-17 Thread edgar . iglesias
From: "Edgar E. Iglesias" Fixes a clone() emulation bug were the new thread starts at the point of the syscall and thus clones in a loop. Signed-off-by: Edgar E. Iglesias --- linux-user/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/main.c b/linux-u

[Qemu-devel] [PATCH] Allow qtest to be used together with a virtual CPU

2013-04-15 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- vl.c |4 1 file changed, 4 insertions(+) diff --git a/vl.c b/vl.c index c566caf..0dbac29 100644 --- a/vl.c +++ b/vl.c @@ -4143,6 +4143,10 @@ int main(int argc, char **argv, char **envp) configure_accelerator(); +

[Qemu-devel] [PATCH] microblaze: Add internal base vectors reg

2013-04-23 Thread edgar . iglesias
From: "Edgar E. Iglesias" Configurable at CPU synthesis/instantiation. Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.h|1 + target-microblaze/helper.c |8 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaz

[Qemu-devel] [PATCH v2] microblaze: Add internal base vectors reg

2013-04-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" Configurable at CPU synthesis/instantiation. Signed-off-by: Edgar E. Iglesias --- Peter Crosthwaite commented off-list that it would be a good idea to make this a device property. I agree but am a bit unsure of how it should look. Any comments on this attempt? v2: Ma

[Qemu-devel] [PATCH v3 00/22] Steps towards per CPU address-spaces

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, I'm looking at modeling systems where multiple CPUs co-exist with different views of their attached buses/devs. With this series I'm trying to take some steps towards having an address-space per CPU. It's not complete but good enough for making it possible to model

[Qemu-devel] [PATCH v3 01/22] exec: Make tb_invalidate_phys_addr input an AS

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" No functional change. Signed-off-by: Edgar E. Iglesias --- exec.c|3 ++- include/exec/exec-all.h |2 +- target-xtensa/op_helper.c |3 ++- translate-all.c |4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --

[Qemu-devel] [PATCH v3 02/22] exec: Make iotlb_to_region input an AS

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|2 +- exec.c |5 ++--- include/exec/exec-all.h |2 +- include/exec/softmmu_template.h |5 +++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff

[Qemu-devel] [PATCH v3 03/22] exec: Always initialize MemorySection address spaces

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index abc4f2f..c9724c0 100644 --- a/exec.c +++ b/exec.c @@ -879,6 +879,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *

[Qemu-devel] [PATCH v3 04/22] exec: Make memory_region_section_get_iotlb use section AS

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index c9724c0..6def6b5 100644 --- a/exec.c +++ b/exec.c @@ -783,7 +783,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,

[Qemu-devel] [PATCH v3 05/22] memory: Add MemoryListener to typedefs.h

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |2 -- include/qemu/typedefs.h |1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 480dfbf..2d0b614 100644 --- a/include/exec/memory

[Qemu-devel] [PATCH v3 07/22] exec: On AS changes, only flush affected CPU TLBs

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |5 + 1 file changed, 5 insertions(+) diff --git a/exec.c b/exec.c index dfad286..54aa790 100644 --- a/exec.c +++ b/exec.c @@ -1809,6 +1809,11 @@ static void tcg_commit(MemoryListener *listener) CPU_FOREACH(cpu)

[Qemu-devel] [PATCH v3 09/22] exec: Make ldq/ldub_*_phys input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c| 22 +++ hw/alpha/typhoon.c|2 +- hw/display/sm501.c|1 + hw/display/sm501_template.h |2 +- hw/net/vmware_utils.h |4 +- hw/

[Qemu-devel] [PATCH v3 10/22] exec: Make lduw_*_phys input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 18 +- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/css.c |3 ++- hw/s390x/virtio-ccw.c |8 +--- hw/virtio/virti

[Qemu-devel] [PATCH v3 06/22] cpu: Add per-cpu address space

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cpus.c |2 ++ cputlb.c|7 --- exec.c | 27 +++ include/exec/exec-all.h |1 + include/exec/softmmu_template.h

[Qemu-devel] [PATCH v3 08/22] exec: Make ldl_*_phys input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cpu-exec.c|5 +- exec.c| 19 --- hw/dma/pl080.c|9 ++-- hw/dma/sun4m_iommu.c |3 +- hw/net/vmware_utils.h |2 +-

[Qemu-devel] [PATCH v3 11/22] exec: Make stq_*_phys input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 12 +++--- hw/alpha/dp264.c |5 ++- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |6 ++- hw/s390x/s390-virtio-bus.c |3 +- hw/s390x/virtio-ccw.c |4 +-

[Qemu-devel] [PATCH v3 12/22] exec: Make stl_*_phys input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 19 + hw/net/vmware_utils.h |2 +- hw/pci/msi.c |2 +- hw/pci/msix.c |2 +- hw/ppc/ppc405_uc.c | 33 --- hw/ppc/spapr_hcall.c

[Qemu-devel] [PATCH v3 15/22] exec: Make stb_phys input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |6 +++--- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c | 10 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/s390-virtio-bus.c | 16 +++- hw/s390x/s39

[Qemu-devel] [PATCH v3 13/22] exec: Make stl_phys_notdirty input an AddressSpace

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|4 ++-- hw/arm/boot.c |9 + hw/arm/highbank.c |6 +++--- include/exec/cpu-common.h |2 +- target-i386/helper.c | 16 target-sparc/mmu_hel

[Qemu-devel] [PATCH v3 17/22] exec: Make cpu_memory_rw_debug use the CPUs AS

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exec.c b/exec.c index 758f458..ee3c3c8 100644 --- a/exec.c +++ b/exec.c @@ -2711,11 +2711,11 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ul

[Qemu-devel] [PATCH v3 20/22] cpu: Add address-space property

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- qom/cpu.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/qom/cpu.c b/qom/cpu.c index 9d62479..fc6dbff 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -24,6 +24,7 @@ #include "qemu/notify.h" #include "qemu/log.h" #include

[Qemu-devel] [PATCH v3 16/22] exec: Make cpu_physical_memory_write_rom input an AS

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c| 15 --- hw/core/loader.c |3 ++- hw/intc/apic.c|3 ++- hw/sparc/sun4m.c |3 ++- include/exec/cpu-common.h |2 +- 5 files changed, 15 insertions(

[Qemu-devel] [PATCH v3 18/22] memory: Add address_space_find_by_name()

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |9 + memory.c | 12 translate-all.c | 10 -- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.

[Qemu-devel] [PATCH v3 19/22] qdev: Add qdev property type for AddressSpaces

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/core/qdev-properties-system.c | 10 +++ hw/core/qdev-properties.c| 54 ++ include/hw/qdev-properties.h |5 stubs/Makefile.objs |1 + stubs/memory.c

[Qemu-devel] [PATCH v3 21/22] petalogix-ml605: Create the CPU with object_new()

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" This is to allow future patches to set properties before cpu::realize(). Reviewed-by: Andreas Färber Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/microbla

[Qemu-devel] [PATCH v3 22/22] petalogix-ml605: Make the LMB visible only to the CPU

2014-01-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index 4009ff5..0a13b0e 100644 ---

[Qemu-devel] [PATCH v3 14/22] exec: Make stw_*_phys input an AddressSpace

2014-01-13 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 20 ++-- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c |2 +- hw/ppc/spapr_hcall.c |4 ++-- hw/s390x/css.c |3 ++- hw/s390x/s390-virtio-

[Qemu-devel] [RFC 0/2] Break the debug session on sw errors

2013-05-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, I've been using variations of this scheme to aid with debugging guest errors that QEMU can detect. I'm posting this RFC to see if there is interest to get something like this upstreamed. Patch 1 adds the mechanism to break the debugger session from within emulation

[Qemu-devel] [RFC 1/2] gdbstub: Add gdbserver_break()

2013-05-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Makes it possible to request interruption of the GDB debug session. Signed-off-by: Edgar E. Iglesias --- gdbstub.c | 68 ++-- include/exec/gdbstub.h |2 ++ 2 files changed, 56 insertions(+), 14 deletions(-

[Qemu-devel] [RFC 2/2] qemu-log: Interrupt the GDB session on guest-errors

2013-05-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- qemu-log.c | 20 1 file changed, 20 insertions(+) diff --git a/qemu-log.c b/qemu-log.c index 797f2af..693bc94 100644 --- a/qemu-log.c +++ b/qemu-log.c @@ -19,6 +19,7 @@ #include "qemu-common.h" #include "

[Qemu-devel] [PATCH] qom/cpu: Remove cpu->exit_request from reset state

2014-02-12 Thread edgar . iglesias
From: "Edgar E. Iglesias" cpu->exit_request is part of the execution environment and should not be cleared when a CPU resets. Otherwise, we might deadlock QEMU if a CPU resets while there is I/O going on. Signed-off-by: Edgar E. Iglesias --- qom/cpu.c | 1 - 1 file changed, 1 deletion(-) dif

[Qemu-devel] [PATCH 1/6] cris: Add a CRISv32 default "any" CPU for user mode emulation

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-cris/cpu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/target-cris/cpu.c b/target-cris/cpu.c index 44301a4..21f1860 100644 --- a/target-cris/cpu.c +++ b/target-cris/cpu.c @@ -239,7 +239,14 @@ static const TypeI

[Qemu-devel] [PATCH 0/6] CRIS queue

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" These fixes and cleanups are sitting on my CRIS queue. Restores CRISv32 as default linux-user CPU. Fix CRIS linux-user signal handling. Removes CRIS PIC glue. Cheers, Edgar Edgar E. Iglesias (5): cris: Add a CRISv32 default "any" CPU for user mode emulation cris:

[Qemu-devel] [PATCH 2/6] cris: Abort when a v10 takes interrupts while in a delayslot

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" This is an internal error as the CRISv10 should mask interrupts while executing delay slots. Bail out sooner rather than later. Signed-off-by: Edgar E. Iglesias --- target-cris/helper.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target-cris/helper.c b/ta

[Qemu-devel] [PATCH 3/6] cris: Add interrupt signals to the CPU device

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-cris/cpu.c | 20 target-cris/cpu.h | 4 2 files changed, 24 insertions(+) diff --git a/target-cris/cpu.c b/target-cris/cpu.c index 21f1860..7dea0f0 100644 --- a/target-cris/cpu.c +++ b/target-cris/

[Qemu-devel] [PATCH 5/6] cris: Remove the CRIS PIC glue

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/cris/Makefile.objs | 1 - hw/cris/pic_cpu.c | 47 --- include/hw/cris/etraxfs.h | 2 -- 3 files changed, 50 deletions(-) delete mode 100644 hw/cris/pic_cpu.c diff --git

[Qemu-devel] [PATCH 4/6] axis-dev88: Connect the PIC upstream IRQs directly to the CPU

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/cris/axis_dev88.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/cris/axis_dev88.c b/hw/cris/axis_dev88.c index 5524088..645e45c 100644 --- a/hw/cris/axis_dev88.c +++ b/hw/cris/axis_dev88.c @@ -254,

[Qemu-devel] [PATCH 6/6] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread edgar . iglesias
From: Stefan Weil __put_user can write bytes, words (2 bytes) or longwords (4 bytes). Here obviously words should have been written, but bytes were written, so values like 0x9c5f were truncated to 0x5f. Fix this by changing retcode from uint8_t to to uint16_t in target_signal_frame and also in t

[Qemu-devel] [PATCH v1 01/22] exec: Make tb_invalidate_phys_addr input an AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" No functional change. Signed-off-by: Edgar E. Iglesias --- exec.c|3 ++- include/exec/exec-all.h |2 +- target-xtensa/op_helper.c |3 ++- translate-all.c |4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --

[Qemu-devel] [PATCH v1 00/22] Steps towards per CPU address-spaces

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, I'm looking at modeling systems where multiple CPUs co-exist with different views of their attached buses/devs. With this series I'm trying to take some steps towards having an address-space per CPU. It's not complete but good enough for making it possible to model

[Qemu-devel] [PATCH v1 02/22] exec: Make iotlb_to_region input an AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|2 +- exec.c |5 ++--- include/exec/exec-all.h |2 +- include/exec/softmmu_template.h |5 +++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff

[Qemu-devel] [PATCH v1 03/22] exec: Always initialize MemorySection address spaces

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index c34f642..6d88931 100644 --- a/exec.c +++ b/exec.c @@ -878,6 +878,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *

[Qemu-devel] [PATCH v1 04/22] exec: Make memory_region_section_get_iotlb use section AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 6d88931..803bbde 100644 --- a/exec.c +++ b/exec.c @@ -782,7 +782,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,

[Qemu-devel] [PATCH v1 05/22] memory: Add MemoryListener to typedefs.h

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |2 -- include/qemu/typedefs.h |1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 480dfbf..2d0b614 100644 --- a/include/exec/memory

[Qemu-devel] [PATCH v1 07/22] qdev: Add qdev property type for AddressSpaces

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/core/qdev-properties-system.c | 46 ++ include/hw/qdev-properties.h |5 + 2 files changed, 51 insertions(+) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-propertie

[Qemu-devel] [PATCH v1 06/22] memory: Add address_space_find_by_name()

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |8 memory.c | 12 2 files changed, 20 insertions(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index 2d0b614..02f4012 100644 --- a/include/exec/memory.

[Qemu-devel] [PATCH v1 09/22] target-microblaze: Add address-space property

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c index 0ef9aa4..ada9556 100644 --- a/target-microblaze/cpu.c +++ b/target-microblaze/cpu.

[Qemu-devel] [PATCH v1 08/22] cpu: Add per-cpu address space

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|4 ++-- exec.c | 31 +++ include/exec/cpu-defs.h |3 +++ include/exec/exec-all.h |1 + include/exec/softmmu_template

[Qemu-devel] [PATCH v1 12/22] exec: Make ldq/ldub_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c| 22 hw/alpha/typhoon.c|2 +- hw/display/sm501.c|1 + hw/display/sm501_template.h |2 +- hw/net/vmware_utils.h |4 +- hw

[Qemu-devel] [PATCH v1 10/22] exec: On AS changes, only flush affected CPU TLBs

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |5 + 1 file changed, 5 insertions(+) diff --git a/exec.c b/exec.c index edb6a43..203c8e4 100644 --- a/exec.c +++ b/exec.c @@ -1810,6 +1810,11 @@ static void tcg_commit(MemoryListener *listener) reset the mod

[Qemu-devel] [PATCH v1 11/22] exec: Make ldl_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cpu-exec.c|5 +- exec.c| 19 --- hw/dma/pl080.c|9 ++-- hw/dma/sun4m_iommu.c |3 +- hw/net/vmware_utils.h |2 +-

[Qemu-devel] [PATCH v1 13/22] exec: Make lduw_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 18 +- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/css.c |3 ++- hw/s390x/virtio-ccw.c |8 +--- hw/virtio/virti

[Qemu-devel] [PATCH v1 16/22] exec: Make stl_phys_notdirty input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|4 ++-- hw/arm/boot.c |9 + hw/arm/highbank.c |6 +++--- include/exec/cpu-common.h |2 +- target-i386/helper.c | 16 target-sparc/mmu_hel

[Qemu-devel] [PATCH v1 17/22] exec: Make stw_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 20 ++-- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c |2 +- hw/ppc/spapr_hcall.c |4 ++-- hw/s390x/css.c |3 ++- hw/s390x/s390-virtio-

[Qemu-devel] [PATCH v1 18/22] exec: Make stb_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |6 +++--- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c | 10 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/s390-virtio-bus.c | 16 +++- hw/s390x/s39

[Qemu-devel] [PATCH v1 14/22] exec: Make stq_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 12 +++--- hw/alpha/dp264.c |5 ++- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |4 +- hw/s390x/s390-virtio-bus.c |3 +- hw/s390x/virtio-ccw.c |4 +-

[Qemu-devel] [PATCH v1 20/22] exec: Make cpu_memory_rw_debug use the CPUs AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 686f0d1..e672824 100644 --- a/exec.c +++ b/exec.c @@ -2669,6 +2669,7 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong ad

[Qemu-devel] [PATCH v1 19/22] exec: Make cpu_physical_memory_write_rom input an AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|8 hw/core/loader.c |3 ++- hw/intc/apic.c|3 ++- hw/sparc/sun4m.c |3 ++- include/exec/cpu-common.h |2 +- 5 files changed, 11 insertions(+), 8 d

[Qemu-devel] [PATCH v1 15/22] exec: Make stl_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 19 + hw/net/vmware_utils.h |2 +- hw/pci/msi.c |2 +- hw/pci/msix.c |2 +- hw/ppc/ppc405_uc.c | 32 +++--- hw/ppc/spapr_hcall.c

[Qemu-devel] [PATCH v1 21/22] petalogix-ml605: Create the CPU with object_new()

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" This is to allow future patches to set properties before cpu::realize(). Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/h

[Qemu-devel] [PATCH v1 22/22] petalogix-ml605: Make the LMB visible only to the CPU

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index 4009ff5..0a13b0e 100644 ---

[Qemu-devel] [PATCH v2 00/22] Steps towards per CPU address-spaces

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, I'm looking at modeling systems where multiple CPUs co-exist with different views of their attached buses/devs. With this series I'm trying to take some steps towards having an address-space per CPU. It's not complete but good enough for making it possible to model

[Qemu-devel] [PATCH v2 01/22] exec: Make tb_invalidate_phys_addr input an AS

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" No functional change. Signed-off-by: Edgar E. Iglesias --- exec.c|3 ++- include/exec/exec-all.h |2 +- target-xtensa/op_helper.c |3 ++- translate-all.c |4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --

[Qemu-devel] [PATCH v2 04/22] exec: Make memory_region_section_get_iotlb use section AS

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 6d88931..803bbde 100644 --- a/exec.c +++ b/exec.c @@ -782,7 +782,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,

[Qemu-devel] [PATCH v2 03/22] exec: Always initialize MemorySection address spaces

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index c34f642..6d88931 100644 --- a/exec.c +++ b/exec.c @@ -878,6 +878,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *

[Qemu-devel] [PATCH v2 02/22] exec: Make iotlb_to_region input an AS

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|2 +- exec.c |5 ++--- include/exec/exec-all.h |2 +- include/exec/softmmu_template.h |5 +++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff

[Qemu-devel] [PATCH v2 06/22] cpu: Add per-cpu address space

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|7 --- exec.c | 28 include/exec/exec-all.h |1 + include/exec/softmmu_template.h |6 -- include/qom/cpu.h

[Qemu-devel] [PATCH v2 05/22] memory: Add MemoryListener to typedefs.h

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |2 -- include/qemu/typedefs.h |1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 480dfbf..2d0b614 100644 --- a/include/exec/memory

[Qemu-devel] [PATCH v2 07/22] exec: On AS changes, only flush affected CPU TLBs

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |5 + 1 file changed, 5 insertions(+) diff --git a/exec.c b/exec.c index eba889a..8fa63b7 100644 --- a/exec.c +++ b/exec.c @@ -1809,6 +1809,11 @@ static void tcg_commit(MemoryListener *listener) CPU_FOREACH(cpu)

[Qemu-devel] [PATCH v2 08/22] exec: Make ldl_*_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cpu-exec.c|5 +- exec.c| 19 --- hw/dma/pl080.c|9 ++-- hw/dma/sun4m_iommu.c |3 +- hw/net/vmware_utils.h |2 +-

[Qemu-devel] [PATCH v2 10/22] exec: Make lduw_*_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 18 +- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/css.c |3 ++- hw/s390x/virtio-ccw.c |8 +--- hw/virtio/virti

[Qemu-devel] [PATCH v2 09/22] exec: Make ldq/ldub_*_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c| 22 +++ hw/alpha/typhoon.c|2 +- hw/display/sm501.c|1 + hw/display/sm501_template.h |2 +- hw/net/vmware_utils.h |4 +- hw/

[Qemu-devel] [PATCH v2 11/22] exec: Make stq_*_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 12 +++--- hw/alpha/dp264.c |5 ++- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |6 ++- hw/s390x/s390-virtio-bus.c |3 +- hw/s390x/virtio-ccw.c |4 +-

[Qemu-devel] [PATCH v2 12/22] exec: Make stl_*_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 19 + hw/net/vmware_utils.h |2 +- hw/pci/msi.c |2 +- hw/pci/msix.c |2 +- hw/ppc/ppc405_uc.c | 33 --- hw/ppc/spapr_hcall.c

[Qemu-devel] [PATCH v2 14/22] exec: Make stw_*_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 20 ++-- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c |2 +- hw/ppc/spapr_hcall.c |4 ++-- hw/s390x/css.c |3 ++- hw/s390x/s390-virtio-

[Qemu-devel] [PATCH v2 13/22] exec: Make stl_phys_notdirty input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|4 ++-- hw/arm/boot.c |9 + hw/arm/highbank.c |6 +++--- include/exec/cpu-common.h |2 +- target-i386/helper.c | 16 target-sparc/mmu_hel

[Qemu-devel] [PATCH v2 15/22] exec: Make stb_phys input an AddressSpace

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |6 +++--- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c | 10 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/s390-virtio-bus.c | 16 +++- hw/s390x/s39

[Qemu-devel] [PATCH v2 17/22] exec: Make cpu_memory_rw_debug use the CPUs AS

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exec.c b/exec.c index f606376..2872b86 100644 --- a/exec.c +++ b/exec.c @@ -2677,11 +2677,11 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ul

[Qemu-devel] [PATCH v2 18/22] memory: Add address_space_find_by_name()

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |8 memory.c | 12 2 files changed, 20 insertions(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index 2d0b614..02f4012 100644 --- a/include/exec/memory.

[Qemu-devel] [PATCH v2 21/22] petalogix-ml605: Create the CPU with object_new()

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" This is to allow future patches to set properties before cpu::realize(). Reviewed-by: Andreas Färber Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/microbla

[Qemu-devel] [PATCH v2 19/22] qdev: Add qdev property type for AddressSpaces

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/core/qdev-properties-system.c | 46 ++ include/hw/qdev-properties.h |5 + 2 files changed, 51 insertions(+) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-propertie

[Qemu-devel] [PATCH v2 22/22] petalogix-ml605: Make the LMB visible only to the CPU

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index 4009ff5..0a13b0e 100644 ---

[Qemu-devel] [PATCH v2 20/22] target-microblaze: Add address-space property

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c index 0ef9aa4..6d39d3d 100644 --- a/target-microblaze/cpu.c +++ b/target-microblaze/cpu.c @@ -93,

[Qemu-devel] [PATCH v2 16/22] exec: Make cpu_physical_memory_write_rom input an AS

2013-12-18 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|8 hw/core/loader.c |3 ++- hw/intc/apic.c|3 ++- hw/sparc/sun4m.c |3 ++- include/exec/cpu-common.h |2 +- 5 files changed, 11 insertions(+), 8 d

[Qemu-devel] [RFC PATCH 4/8] exec: Make memory_region_section_get_iotlb use section AS

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 05df217..0162eb3 100644 --- a/exec.c +++ b/exec.c @@ -709,7 +709,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,

[Qemu-devel] [RFC PATCH 2/8] exec: Make iotlb_to_region input an AS

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|2 +- exec.c |4 ++-- include/exec/exec-all.h |2 +- include/exec/softmmu_template.h |5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff

[Qemu-devel] [RFC PATCH 0/8] Steps towards per CPU address-spaces

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, I'm looking at modelling a system where multiple CPUs co-exist with different views of their attached buses/devs. With this RFC series I'm trying to take small steps towards having an address-space per CPU. This is still incomplete but I would like to get comments

[Qemu-devel] [RFC PATCH 6/8] cpu: Add per-cpu address space

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|4 ++-- exec.c | 31 +++ include/exec/cpu-defs.h |3 +++ include/exec/exec-all.h |1 + include/exec/softmmu_template

[Qemu-devel] [RFC PATCH 3/8] exec: Always initialize MemorySection address spaces

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index 5e17110..05df217 100644 --- a/exec.c +++ b/exec.c @@ -806,6 +806,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *

[Qemu-devel] [RFC PATCH 1/8] exec: Make tb_invalidate_phys_addr input an AS

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" No functional change. Signed-off-by: Edgar E. Iglesias --- exec.c|3 ++- include/exec/exec-all.h |2 +- target-xtensa/op_helper.c |3 ++- translate-all.c |4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --

[Qemu-devel] [RFC PATCH 5/8] memory: Add MemoryListener to typedefs

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/qemu/typedefs.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index a4c1b84..425ca1a 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -24,6 +24,

[Qemu-devel] [RFC PATCH 8/8] exec: Make ldl_*_phys input an AddressSpace

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cpu-exec.c|5 +- exec.c| 19 --- hw/dma/pl080.c|9 ++-- hw/dma/sun4m_iommu.c |3 +- hw/net/vmware_utils.h |2 +-

[Qemu-devel] [RFC PATCH 7/8] exec: On AS changes, only flush affected CPU TLBs

2013-11-22 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |5 + 1 file changed, 5 insertions(+) diff --git a/exec.c b/exec.c index acbd2e6..f273a46 100644 --- a/exec.c +++ b/exec.c @@ -1715,6 +1715,11 @@ static void tcg_commit(MemoryListener *listener) reset the mod

[Qemu-devel] [PATCH 00/10] MicroBlaze queue

2013-10-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, These are various MicroBlaze patches sitting in my queue. A few optimizations, sysemu initrd boot loading support and improvement to the exclusive load/store for system emulation. Cheers, Edgar Edgar E. Iglesias (10): microblaze: Clarify expected input of write_

[Qemu-devel] [PATCH 02/10] microblaze: Make write_carryi input a boolean

2013-10-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 76b2570..d183e17 100644 --- a/target-microblaze/translate.c

[Qemu-devel] [PATCH 04/10] microblaze: Improve srl

2013-10-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" write_carry only looks at bit zero, no need to mask out the others. Meassured a 12% speed improvement in linux-user srl loops. Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --g

[Qemu-devel] [PATCH 03/10] microblaze: Simplify andn by using tcg_gen_andc

2013-10-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index d183e17..916db15 100644 --- a/target-microblaze/translate.c

[Qemu-devel] [PATCH 01/10] microblaze: Clarify expected input of write_carry

2013-10-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c |4 1 file changed, 4 insertions(+) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 1b937b3..76b2570 100644 --- a/target-microblaze/translate.c +++ b/target-mi

[Qemu-devel] [PATCH 05/10] microblaze: Improve src

2013-10-24 Thread edgar . iglesias
From: "Edgar E. Iglesias" Microblaze carry is mirrored in MSR[31], pick it directly from there. Also, no need to mask cpu_R[dc->ra] when calling write_carry. 15% improvement in linux-user src loops. Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c | 15 --- 1 f

  1   2   >