From: Guan Xuetao
This patch adds unicore32-softmmu build support, include configure,
makefile, arch_init, and all missing functions needed by softmmu.
Although all missing functions are empty, unicore32-softmmu could
be build successfully.
By 20120804: change QEMU_ARCH_UNICORE32 to 0x4000
Signe
From: Guan Xuetao
These patches implement softmmu support on unicore32 architecture.
Based on master branch of qemu, these patches can be fetched from:
git://github.com/gxt/QEMU.git for-review
UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3
devices simulation codes
From: Guan Xuetao
This patch initializes the cpuid to exactly correct value because
linux kernel will check it.
In addition, the exception types are specified in proper situations.
Then it could make exceptions generated correctly and timely.
Signed-off-by: Guan Xuetao
---
cpu-exec.c
From: Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support,
include gpio device simulation and its interrupt support.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |1 +
hw/puv3.c|6 ++
hw/puv3_gpio.c | 141 ++
From: Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler
device simulation and interrupt handler in puv3 machine.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |3 +
hw/puv3.c| 23 +-
hw/puv3_intc.c | 135 +
From: Guan Xuetao
This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c | 41 +
1 files changed, 25 insertions(+), 16 deletions(-)
diff --git a/target-unicore32/translat
From: Guan Xuetao
This patch adds a minimal curses screen support for unicore32-softmmu.
We assume 80*30 screen size to minimize the implementation.
Two problems are not solved, but they are innocuous.
1. curses windows will be blank when switching to monitor screen and back
2. backspace is not h
From: Guan Xuetao
This patch just splits ucf64 instruction simulation helpers from
helper.c.
Also, two checkpatch warnings are solved.
v1->v2: adjust copyright information for new ucf64_helper.c
Signed-off-by: Guan Xuetao
---
target-unicore32/Makefile.objs |2 +
target-unicore32/helper.c
From: Guan Xuetao
This patch sets is_default to 1 for puv3 machine, so that
find_default_machine() returns puv3 machine.
Thanks Dunrong for pointing it out.
Cc: Dunrong Huang
Signed-off-by: Guan Xuetao
---
hw/puv3.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/p
From: Guan Xuetao
Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c
in
From: Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3
machine description, and specifies console type.
Signed-off-by: Guan Xuetao
---
default-configs/unicore32-softmmu.mak |1 +
hw/puv3.c | 93 +
hw
From: Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill,
switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault.
So the full exception handlers and page table walking could work now.
Signed-off-by: Guan Xuetao
---
target-unicore32/op_helper.c | 22 -
target-
From: Guan Xuetao
Signed-off-by: Guan Xuetao
---
MAINTAINERS |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 2d219d2..708ad54 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -405,6 +405,14 @@ M: Alexander Graf
S: Maintained
F: hw/
From: Andreas Färber
Any code that depends on a particular CPU type can now go through
callbacks on the QOM UniCore32CPUClass.
Signed-off-by: Andreas Färber
---
target-unicore32/cpu.h |4
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/target-unicore32/cpu.h b/target-un
From: Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD.
Signed-off-by: Guan Xuetao
---
default-configs/unicore32-softmmu.mak |1 +
hw/puv3.c |5 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/default-configs/un
From: Guan Xuetao
This patch adds puv3 pm (power management) support,
include pm device simulation for kernel booting.
Thank Blue Swirl for pointing out the missing "break".
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |1 +
hw/puv3.c|1 +
hw/puv3_pm.c | 149 +++
From: Guan Xuetao
As a matter of course, we need to access user space in kernel code,
so we need to correct load/store decoders to indicate correct memory
region.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c | 36 ++--
1 files changed, 26 insert
From: Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support,
include dma device simulation for kernel booting.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |1 +
hw/puv3.c|1 +
hw/puv3_dma.c| 109 ++
3 fi
From: Guan Xuetao
Coprocessor 0 is system control coprocessor, and we need get/set its contents.
Also, all cache/tlb ops shoule be implemented here, but just ignored with no
harm.
Coprocessor 1 is OCD (on-chip-debugger), which is used for faked console,
so we could output chars to this console
From: Guan Xuetao
This patch adds puv3 ostimer support, include os timer
device simulation and ptimer support in puv3 machine.
Signed-off-by: Guan Xuetao
---
default-configs/unicore32-softmmu.mak |1 +
hw/Makefile.objs |1 +
hw/puv3.c |
From: Andreas Färber
Any code that depends on a particular CPU type can now go through
callbacks on the QOM UniCore32CPUClass.
Signed-off-by: Andreas Färber
---
target-unicore32/cpu.h |4
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/target-unicore32/cpu.h b/target-un
From: Guan Xuetao
This patch initializes the cpuid to exactly correct value because
linux kernel will check it.
In addition, the exception types are specified in proper situations.
Then it could make exceptions generated correctly and timely.
Signed-off-by: Guan Xuetao
---
cpu-exec.c
From: Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3
machine description, and specifies console type.
Signed-off-by: Guan Xuetao
---
default-configs/unicore32-softmmu.mak |1 +
hw/puv3.c | 93 +
hw
From: Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler
device simulation and interrupt handler in puv3 machine.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |3 +
hw/puv3.c| 23 +-
hw/puv3_intc.c | 135 +
From: Guan Xuetao
This patch just splits ucf64 instruction simulation helpers from
helper.c.
Also, two checkpatch warnings are solved.
v1->v2: adjust copyright information for new ucf64_helper.c
Signed-off-by: Guan Xuetao
---
target-unicore32/Makefile.objs |2 +
target-unicore32/helper.c
From: Guan Xuetao
This patch adds a minimal curses screen support for unicore32-softmmu.
We assume 80*30 screen size to minimize the implementation.
Two problems are not solved, but they are innocuous.
1. curses windows will be blank when switching to monitor screen and back
2. backspace is not h
From: Guan Xuetao
This patch sets is_default to 1 for puv3 machine, so that
find_default_machine() returns puv3 machine.
Thanks Dunrong for pointing it out.
Cc: Dunrong Huang
Signed-off-by: Guan Xuetao
---
hw/puv3.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/p
From: Guan Xuetao
Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c
in
From: Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support,
include dma device simulation for kernel booting.
v1->v2: Add initialization to ret in puv3_dma_read.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |1 +
hw/puv3.c|1 +
hw/puv3_dma.c| 109 +++
From: Guan Xuetao
This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c | 41 +
1 files changed, 25 insertions(+), 16 deletions(-)
diff --git a/target-unicore32/translat
From: Guan Xuetao
This patch adds unicore32-softmmu build support, include configure,
makefile, arch_init, and all missing functions needed by softmmu.
Although all missing functions are empty, unicore32-softmmu could
be build successfully.
By 20120804: change QEMU_ARCH_UNICORE32 to 0x4000
Signe
From: Guan Xuetao
Coprocessor 0 is system control coprocessor, and we need get/set its contents.
Also, all cache/tlb ops shoule be implemented here, but just ignored with no
harm.
Coprocessor 1 is OCD (on-chip-debugger), which is used for faked console,
so we could output chars to this console
From: Guan Xuetao
Signed-off-by: Guan Xuetao
---
MAINTAINERS |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 2d219d2..708ad54 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -405,6 +405,14 @@ M: Alexander Graf
S: Maintained
F: hw/
From: Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill,
switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault.
So the full exception handlers and page table walking could work now.
Signed-off-by: Guan Xuetao
---
target-unicore32/op_helper.c | 22 -
target-
From: Guan Xuetao
As a matter of course, we need to access user space in kernel code,
so we need to correct load/store decoders to indicate correct memory
region.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c | 36 ++--
1 files changed, 26 insert
From: Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support,
include gpio device simulation and its interrupt support.
v1->v2: Add initialization to ret in puv3_gpio_read.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |1 +
hw/puv3.c|6 ++
hw/puv3_gpio
From: Guan Xuetao
This patch adds puv3 ostimer support, include os timer
device simulation and ptimer support in puv3 machine.
Signed-off-by: Guan Xuetao
---
default-configs/unicore32-softmmu.mak |1 +
hw/Makefile.objs |1 +
hw/puv3.c |
From: Guan Xuetao
This patch adds puv3 pm (power management) support,
include pm device simulation for kernel booting.
Thank Blue Swirl for pointing out the missing "break".
v1->v2: Add initialization to ret in puv3_pm_read.
Signed-off-by: Guan Xuetao
---
hw/Makefile.objs |1 +
hw/puv3.c
From: Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD.
Signed-off-by: Guan Xuetao
---
default-configs/unicore32-softmmu.mak |1 +
hw/puv3.c |5 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/default-configs/un
From: Guan Xuetao
These patches implement softmmu support on unicore32 architecture.
v1->v2: Correct maybe-uninitialized warning in gpio/pm/dma handlers.
UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3
devices simulation codes together.
Only minimal system control modules a
From: Guan Xuetao
This patch sets is_default to 1 for puv3 machine, so that
find_default_machine() returns puv3 machine.
Thanks Dunrong for pointing it out.
Cc: Dunrong Huang
Signed-off-by: Guan Xuetao
---
hw/puv3.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/p
From: Guan Xuetao
This patch just splits ucf64 instruction simulation helpers from
helper.c.
Also, two checkpatch warnings are solved.
Signed-off-by: Guan Xuetao
---
target-unicore32/Makefile.objs |2 +
target-unicore32/helper.c | 330 -
target-u
are available in the git repository at:
git://github.com/gxt/QEMU.git unicore32
Andreas Färber (1):
target-unicore32: Drop UC32_CPUID macros
Guan Xuetao (13):
unicore32-softmmu: Add unicore32-softmmu build support
unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd
From: Guan Xuetao
This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state.
Since of tedious output, we close this dump in its default state.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c | 41 +
1 files changed, 25 inse
From: Guan Xuetao
This patch just splits ucf64 instruction simulation helpers from
helper.c.
Also, two checkpatch warnings are solved.
v1->v2: adjust copyright information for new ucf64_helper.c
Signed-off-by: Guan Xuetao
---
target-unicore32/Makefile.objs |2 +
target-unicore32/helper.c
From: Guan Xuetao
This patch adds a minimal curses screen support for unicore32-softmmu.
We assume 80*30 screen size to minimize the implementation.
Two problems are not solved, but they are innocuous.
1. curses windows will be blank when switching to monitor screen and back
2. backspace is not h
From: Guan Xuetao
This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c | 41 +
1 files changed, 25 insertions(+), 16 deletions(-)
diff --git a/target-unicore32/translat
From: Guan Xuetao
This patch just splits ucf64 instruction simulation helpers from
helper.c.
Also, two checkpatch warnings are solved.
v1->v2: adjust copyright information for new ucf64_helper.c
Signed-off-by: Guan Xuetao
---
target-unicore32/Makefile.objs |2 +
target-unicore32/helper.c
From: Guan Xuetao
Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function.
Signed-off-by: Guan Xuetao
---
target-unicore32/translate.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c
in
From: Guan Xuetao
This patch adds a minimal curses screen support for unicore32-softmmu.
We assume 80*30 screen size to minimize the implementation.
Two problems are not solved, but they are innocuous.
1. curses windows will be blank when switching to monitor screen and back
2. backspace is not h
are available in the git repository at:
git://github.com/gxt/QEMU.git unicore32
Andreas Färber (1):
target-unicore32: Drop UC32_CPUID macros
Guan Xuetao (14):
unicore32-softmmu: Add unicore32-softmmu build support
unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd
51 matches
Mail list logo