[Qemu-devel] [PULL 0/2] OpenRISC patch queue for 2.3

2015-02-02 Thread Jia Liu
Hi Anthony, This is my OpenRISC patch queue for 2.3, it have been well tested, please pull. Thanks to Christian and Sebastian, they made the LD/ST updated. Regards, Jia The following changes since commit 16017c48547960539fcadb1f91d252124f442482: softfloat: Clarify license status

[Qemu-devel] [PULL 2/2] target-openrisc: Add l.lwa/l.swa support

2015-02-02 Thread Jia Liu
...@macke.de Reviwed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/cpu.h | 3 ++ target-openrisc/interrupt.c | 3 ++ target-openrisc/translate.c | 74 - 3 files changed, 79 insertions(+), 1 deletion

[Qemu-devel] [PULL 1/2] target-openrisc: Separate of load/store instructions

2015-02-02 Thread Jia Liu
Macke sebast...@macke.de Reviwed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/translate.c | 116 1 file changed, 75 insertions(+), 41 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc

Re: [Qemu-devel] [PATCH 2/2] target-openrisc: Add l.lwa/l.swa support

2015-01-27 Thread Jia Liu
On Mon, Jan 26, 2015 at 6:18 PM, Sebastian Macke sebast...@macke.de wrote: Hi Jia, On 1/26/2015 10:50 AM, Jia Liu wrote: Hi Sebastian, Christian On Sun, Jan 25, 2015 at 6:25 PM, Sebastian Macke sebast...@macke.de wrote: From: Christian Svensson b...@cmd.nu This patch adds support

Re: [Qemu-devel] [PATCH 2/2] target-openrisc: Add l.lwa/l.swa support

2015-01-26 Thread Jia Liu
Hi Sebastian, Christian On Sun, Jan 25, 2015 at 6:25 PM, Sebastian Macke sebast...@macke.de wrote: From: Christian Svensson b...@cmd.nu This patch adds support for atomic locks and is an adaption from https://github.com/bluecmd/or1k-qemu/commits/or32-optimize Tested via the atomic lock

Re: [Qemu-devel] [PATCH 1/2] target-openrisc: Separate of load/store instructions

2015-01-26 Thread Jia Liu
)); -tcg_gen_qemu_st_tl(cpu_R[rb], t0, dc-mem_idx, mop); -tcg_temp_free(t0); -} +gen_loadstore(dc, op0, ra, rb, rd, tmp); break; default: Thank you, it is good to separate the related instructions. Reviwed-by: Jia Liu pro...@gmail.com -- 2.2.2

Re: [Qemu-devel] [PATCH v2] target-openrisc: bugfix for dec_sys to decode instructions correctly

2015-01-07 Thread Jia Liu
); +op0 = extract32(insn, 16, 10); Thank you for pointing this. Acked-by: Jia Liu pro...@gmail.com #ifdef OPENRISC_DISAS K16 = extract32(insn, 0, 16); #endif -- 2.2.1 Regards, Jia

Re: [Qemu-devel] [PATCH v3 1/4] target-openrisc: New machine with IDE support

2014-10-05 Thread Jia Liu
/openrisc_asim.c new file mode 100644 index 000..80aa5ed --- /dev/null +++ b/hw/openrisc/openrisc_asim.c @@ -0,0 +1,202 @@ +/* + * OpenRISC simulator with more peripherals + * + * Copyright (c) 2011-2014 Jia Liu pro...@gmail.com + * Feng Gao gf91...@gmail.com

Re: [Qemu-devel] [PATCH v3 2/4] hw/display: Add OpenCores FB device support

2014-10-05 Thread Jia Liu
]); + + cpu_openrisc_load_kernel(ram_size, kernel_filename, cpu); } -- 1.9.1 Acked-by: Jia Liu pro...@gmail.com Regards, Jia

Re: [Qemu-devel] [PATCH v3 3/4] hw/input: Add OpenCores keyboard device support

2014-10-05 Thread Jia Liu
, kernel_filename, cpu); } -- 1.9.1 Acked-by: Jia Liu pro...@gmail.com Regards, Jia

Re: [Qemu-devel] [PATCH v3 4/4] hw/input: Add LPC32XX touchscreen device

2014-10-05 Thread Jia Liu
[OR_TOUCHSCREEN], cpu-env.irq[9]); + cpu_openrisc_load_kernel(ram_size, kernel_filename, cpu); } -- 1.9.1 Acked-by: Jia Liu pro...@gmail.com Regards, Jia

Re: [Qemu-devel] [PATCH 16/23] target-openrisc: Use cpu_exec_interrupt qom hook

2014-09-15 Thread Jia Liu
Hi Richard, Thank you! Tested-by: Jia Liu pro...@gmail.com On Sat, Sep 13, 2014 at 9:45 AM, Richard Henderson r...@twiddle.net wrote: Cc: Jia Liu pro...@gmail.com Signed-off-by: Richard Henderson r...@twiddle.net --- cpu-exec.c | 18 -- target-openrisc

Re: [Qemu-devel] [PATCH v2 3/4] target-openrisc: Add OpenCores keyboard device support

2014-08-24 Thread Jia Liu
Hi Valentin, On Sat, Aug 23, 2014 at 1:05 AM, Valentin Manea valentin.ma...@gmail.com wrote: Add support for the OpenCores keyboard device to the default OpenRisc machine. The OpenCores keyboard device is a simple open source keyboard device created by the OpenCores

Re: [Qemu-devel] [PATCH v2 4/4] target-openrisc: Add LPC32XX touchscreen device

2014-08-24 Thread Jia Liu
Hi Valentin, On Sat, Aug 23, 2014 at 1:06 AM, Valentin Manea valentin.ma...@gmail.com wrote: The LPC32XX is a simple MMIO touch screen device with a Linux device driver. The device is suitable for small machines which require mouse input but have no suitable bus(SPI, I2C). Add the LPC32XX

Re: [Qemu-devel] [PATCH 2/4] target-openrisc: Add OpenCores FB device support

2014-08-22 Thread Jia Liu
Hi Valentin, On Fri, Aug 22, 2014 at 9:10 PM, Valentin Manea valentin.ma...@gmail.com wrote: Add support for the OpenCores Framebuffer device and enable it by default in the OpenRISC machine. The OpenCores display device is a simple open source framebuffer device created

Re: [Qemu-devel] [PATCH 3/4] target-openrisc: Add OpenCores keyboard device support

2014-08-22 Thread Jia Liu
Hi Valentin, On Fri, Aug 22, 2014 at 9:11 PM, Valentin Manea valentin.ma...@gmail.com wrote: Add support for the OpenCores keyboard device to the default OpenRisc machine. The OpenCores keyboard device is a simple open source keyboard device created by the OpenCores

Re: [Qemu-devel] [PATCH 4/4] target-openrisc: Add LPC32XX touchscreen device

2014-08-22 Thread Jia Liu
Hi Valentin, On Fri, Aug 22, 2014 at 9:12 PM, Valentin Manea valentin.ma...@gmail.com wrote: The LPC32XX is a simple MMIO touch screen device with a Linux device driver. The device is suitable for small machines which require mouse input but have no suitable bus(SPI, I2C). Add the LPC32XX

Re: [Qemu-devel] [PATCH 0/4] target-openrisc: Some openrisc improvements

2014-08-22 Thread Jia Liu
Hi Valentin, On Fri, Aug 22, 2014 at 10:01 PM, Valentin Manea valentin.ma...@gmail.com wrote: Hi, I would like to share this series of patches to improve the openrisc machine. Mostly my goal is to have the same features as the web based machine and be able to boot qemu with exactly the

Re: [Qemu-devel] [PATCH] linux-user: Handle arches with llseek instead of _llseek

2014-03-25 Thread Jia Liu
Voipio riku.voi...@iki.fi Cc: Jia Liu pro...@gmail.com --- linux-user/syscall.c | 5 + 1 file changed, 5 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 2eac6d5..8dbe39b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -198,6 +198,11 @@ static

[Qemu-devel] [PULL] OpenRISC patch queue for 1.8

2014-02-11 Thread Jia Liu
Hi Anthony, This is my OpenRISC patch queue for 1.8, it have been well tested, please pull. Thanks to Richard Henderson, he made the LD/ST updated. Regards, Jia The following changes since commit a4550442b947d2c2b346bd2efc8fe3da16425f4d: petalogix-ml605: Create the CPU with object_new()

[Qemu-devel] [PULL] target-openrisc: Use new qemu_ld/st opcodes

2014-02-11 Thread Jia Liu
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Acked-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/translate.c | 99 +++-- 1 file changed, 32 insertions(+), 67 deletions

Re: [Qemu-devel] [PATCH] target-openrisc: Use new qemu_ld/st opcodes

2014-01-19 Thread Jia Liu
Hi Anthony, Michael said he had applied the typo patch, then I waited it for days and didn't find it in master, so I resend the same patch in my pull request queue. It is my fault, sorry Michael. And, Anthony, please applied this one, please. On Sat, Dec 14, 2013 at 4:45 PM, Jia Liu pro

Re: [Qemu-devel] [PULL 0/2] OpenRISC patch queue for 1.8

2014-01-06 Thread Jia Liu
ping~~ On Sat, Dec 21, 2013 at 9:47 AM, Jia Liu pro...@gmail.com wrote: Hi Anthony, This is my OpenRISC patch queue for 1.8, it have been well tested, please pull. Thanks to Richard Henderson, he made the LD/ST updated. Thanks to Stefan Weil, he fixed a typo. Regards, Jia

[Qemu-devel] [PULL 1/2] openrisc: Fix spelling in comment (transaltion - translation)

2013-12-20 Thread Jia Liu
From: Stefan Weil s...@weilnetz.de Fix typo in comment (transaltion - translation). And I also removed two hyphens in the same comment. Signed-off-by: Stefan Weil s...@weilnetz.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/translate.c | 2

[Qemu-devel] [PULL 0/2] OpenRISC patch queue for 1.8

2013-12-20 Thread Jia Liu
Hi Anthony, This is my OpenRISC patch queue for 1.8, it have been well tested, please pull. Thanks to Richard Henderson, he made the LD/ST updated. Thanks to Stefan Weil, he fixed a typo. Regards, Jia The following changes since commit f8251db121c3f051b22a7536b97d160c30bcccd4: Merge

[Qemu-devel] [PULL 2/2] target-openrisc: Use new qemu_ld/st opcodes

2013-12-20 Thread Jia Liu
From: Richard Henderson r...@twiddle.net Cc: Jia Liu pro...@gmail.com Signed-off-by: Richard Henderson r...@twiddle.net Acked-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/translate.c | 99 +++-- 1 file changed

Re: [Qemu-devel] [PATCH] target-openrisc: Use new qemu_ld/st opcodes

2013-12-14 Thread Jia Liu
Hi Richard, On Thu, Dec 12, 2013 at 12:42 AM, Richard Henderson r...@twiddle.net wrote: Cc: Jia Liu pro...@gmail.com Signed-off-by: Richard Henderson r...@twiddle.net --- target-openrisc/translate.c | 99 +++-- 1 file changed, 32 insertions(+), 67

Re: [Qemu-devel] [PATCH] openrisc: Fix spelling in comment (transaltion - translation)

2013-12-07 Thread Jia Liu
translation space to execution space. */ Thank you very much! Reviewed-by: Jia Liu pro...@gmail.com static inline void wb_SR_F(void) { int label; -- 1.7.10.4 Regards, Jia

[Qemu-devel] [PULL 5/7] openrisc-timer: Reduce overhead, Separate clock update functions

2013-11-20 Thread Jia Liu
. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- hw/openrisc/cputimer.c | 29 +++-- target-openrisc/cpu.h| 1 + target-openrisc/sys_helper.c | 38

[Qemu-devel] [PULL 4/7] target-openrisc: Correct wrong epcr register in interrupt handler

2013-11-20 Thread Jia Liu
. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/interrupt.c | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/target-openrisc/interrupt.c b/target-openrisc

[Qemu-devel] [PULL 7/7] target-openrisc: Correct carry flag check of l.addc and l.addic test cases

2013-11-20 Thread Jia Liu
From: Sebastian Macke sebast...@macke.de The test cases did not correctly test for the carry flag. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- tests/tcg/openrisc/test_addc.c | 8 +--- tests/tcg

[Qemu-devel] [PULL 3/7] target-openrisc: Remove executable flag for every page

2013-11-20 Thread Jia Liu
From: Sebastian Macke sebast...@macke.de Pages should be flagged executable only if the tlb executable flag is set or the mmu is off. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/mmu.c | 4

[Qemu-devel] [PULL 6/7] target-openrisc: Correct memory bounds checking for the tlb buffers

2013-11-20 Thread Jia Liu
From: Sebastian Macke sebast...@macke.de The mtspr and mfspr routines didn't check for the correct memory boundaries. This fixes a segmentation fault while booting Linux. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro

[Qemu-devel] [PULL 0/7] OpenRISC patch queue for 1.7

2013-11-20 Thread Jia Liu
Hi Anthony, Hi Blue, This is my OpenRISC patch queue for 1.7, it have been well tested, please pull. Thanks to Sebastian Macke, it made move optimization and fix some bugs. The following changes since commit 394cfa39ba24dd838ace1308ae24961243947fb8: Merge remote-tracking branch

[Qemu-devel] [PULL 1/7] target-openrisc: Speed up move instruction

2013-11-20 Thread Jia Liu
for this special case. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/translate.c | 50 - 1 file changed, 27 insertions(+), 23 deletions(-) diff --git

[Qemu-devel] [PULL 2/7] target-openrisc: Remove unnecessary code generated by jump instructions

2013-11-20 Thread Jia Liu
From: Sebastian Macke sebast...@macke.de The sr_f variable is only used for the l.bf and l.bnf instructions. For clarity the code is also rewritten using a switch statement instead of if chaining. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro...@gmail.com Signed-off

Re: [Qemu-devel] [PATCH 00/13] target-openrisc: More optimizations and corrections

2013-10-31 Thread Jia Liu
Hi Sebastian, On Wed, Oct 30, 2013 at 5:22 AM, Sebastian Macke sebast...@macke.de wrote: On 29/10/2013 2:15 PM, Max Filippov wrote: On Tue, Oct 29, 2013 at 11:04 PM, Sebastian Macke sebast...@macke.de wrote: Hi, This is the second part of the patches to make the openrisc target faster

Re: [Qemu-devel] [PATCH_v2 0/9] target-openrisc: Corrections and speed improvements

2013-10-29 Thread Jia Liu
Hi Sebastian, On Mon, Oct 28, 2013 at 9:56 AM, Sebastian Macke sebast...@macke.de wrote: On 25/10/2013 5:21 PM, Jia Liu wrote: On Fri, Oct 25, 2013 at 7:23 AM, Sebastian Macke sebast...@macke.de wrote: On 22/10/2013 8:47 PM, Jia Liu wrote: Hi Sebastian, On Tue, Oct 22, 2013 at 8:12 AM

Re: [Qemu-devel] [PATCH_v2 0/9] target-openrisc: Corrections and speed improvements

2013-10-25 Thread Jia Liu
On Fri, Oct 25, 2013 at 7:23 AM, Sebastian Macke sebast...@macke.de wrote: On 22/10/2013 8:47 PM, Jia Liu wrote: Hi Sebastian, On Tue, Oct 22, 2013 at 8:12 AM, Sebastian Macke sebast...@macke.de wrote: This series is the first part to make the OpenRISC target more reliable and faster

Re: [Qemu-devel] [PATCH_v2 0/9] target-openrisc: Corrections and speed improvements

2013-10-22 Thread Jia Liu
to a significant speed improvement. For v2 0/9 - 9/9 Acked-by: Jia Liu pro...@gmail.com I'll add some comment into the code to explain why we separate flags from sr and send a pull request if nobody raise a rejection. Sebastian Macke (9): target-openrisc: Speed up move instruction

Re: [Qemu-devel] qemu-system-or32 is not working on OS X, ask for help.

2013-10-17 Thread Jia Liu
Hi Peter, On Thu, Oct 17, 2013 at 5:15 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 17 October 2013 04:17, Jia Liu pro...@gmail.com wrote: On Fri, Oct 11, 2013 at 10:41 AM, Jia Liu pro...@gmail.com wrote: I'm not sure about why qemu-system-or32 is not working on OS X, is it a AREG0

Re: [Qemu-devel] qemu-system-or32 is not working on OS X, ask for help.

2013-10-16 Thread Jia Liu
Hi all, On Fri, Oct 11, 2013 at 10:41 AM, Jia Liu pro...@gmail.com wrote: Hi all, I'm not sure about why qemu-system-or32 is not working on OS X, is it a AREG0 problem? May you please give me some suggestion, I want to test it on OS X, not Ubuntu any longer. GCC on OS X is OK, it looks like

Re: [Qemu-devel] [PULL 0/2] Correction of the TLB handling of the OpenRISC target

2013-10-14 Thread Jia Liu
Hi Anthony, Hi Peter, On Thu, Oct 3, 2013 at 5:00 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 3 October 2013 17:41, Jia Liu pro...@gmail.com wrote: Hi Anthony, This is my OpenRISC patch queue. It originally come from Sebastian Macke, split by me, and I used some comment come from

[Qemu-devel] qemu-system-or32 is not working on OS X, ask for help.

2013-10-10 Thread Jia Liu
Hi all, I'm not sure about why qemu-system-or32 is not working on OS X, is it a AREG0 problem? May you please give me some suggestion, I want to test it on OS X, not Ubuntu any longer. Thank you. Regards, Jia

[Qemu-devel] [PULL 1/2] target-openrisc: Correct handling of page faults.

2013-10-03 Thread Jia Liu
From: Sebastian Macke sebast...@macke.de The result of (rw 0) is always zero and therefore a logic false. The whole comparison will therefore never be executed, it is a obvious bug, we should use !(rw 1) here. Signed-off-by: Sebastian Macke sebast...@macke.de Reviewed-by: Jia Liu pro

[Qemu-devel] [PULL 0/2] Correction of the TLB handling of the OpenRISC target

2013-10-03 Thread Jia Liu
Hi Anthony, This is my OpenRISC patch queue. It originally come from Sebastian Macke, split by me, and I used some comment come from Stefan Kristiansson. Please pull. This patch set correct two problems. The first one corrects one obvious bug concerning the handling of page faults while reading

[Qemu-devel] [PULL 2/2] target-openrisc: Removes a non-conforming behavior for the first page of the memory

2013-10-03 Thread Jia Liu
From: Sebastian Macke sebast...@macke.de Where *software* leaves 0x - 0x2000 unmapped, the hardware should still allow for this area to be mapped. Signed-off-by: Sebastian Macke sebast...@macke.de Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi Reviewed-by: Jia Liu pro

Re: [Qemu-devel] [PULL 0/2] Correction of the TLB handling of the OpenRISC target

2013-10-03 Thread Jia Liu
Hi Peter, On Thu, Oct 3, 2013 at 5:00 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 3 October 2013 17:41, Jia Liu pro...@gmail.com wrote: Hi Anthony, This is my OpenRISC patch queue. It originally come from Sebastian Macke, split by me, and I used some comment come from Stefan

Re: [Qemu-devel] [OpenRISC] [PATCH] Correction of the TLB handling of the OpenRISC target

2013-10-02 Thread Jia Liu
On Wed, Oct 2, 2013 at 2:15 PM, Stefan Kristiansson stefan.kristians...@saunalahti.fi wrote: On Wed, Oct 2, 2013 at 8:33 AM, Jia Liu pro...@gmail.com wrote: Hi Sebastian, On Wed, Oct 2, 2013 at 1:12 PM, Sebastian Macke sebast...@macke.de wrote: Hi, this patch corrects two problems

Re: [Qemu-devel] [OpenRISC] [PATCH] Correction of the TLB handling of the OpenRISC target

2013-10-01 Thread Jia Liu
Hi Sebastian, On Wed, Oct 2, 2013 at 1:12 PM, Sebastian Macke sebast...@macke.de wrote: Hi, this patch corrects two problems for the OpenRISC Target in QEMU. The first one corrects one obvious bug concerning the handling of page faults while reading from a page. @@ -102,7 +102,7 @@ int

Re: [Qemu-devel] [RFC qom-cpu 01/41] cpu: Turn cpu_has_work() into a CPUClass hook

2013-09-04 Thread Jia Liu
(CPUState *cpu) -{ -CPUXtensaState *env = XTENSA_CPU(cpu)-env; - -return env-pending_irq_level; -} - #endif target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 02/41] cpu: Turn cpu_mmu_index() into a CPUClass hook

2013-09-04 Thread Jia Liu
MMU_MODE2_SUFFIX _ring2 #define MMU_MODE3_SUFFIX _ring3 -static inline int cpu_mmu_index(CPUXtensaState *env) -{ -return xtensa_get_cring(env); -} - #define XTENSA_TBFLAG_RING_MASK 0x3 #define XTENSA_TBFLAG_EXCM 0x4 #define XTENSA_TBFLAG_LITBASE 0x8 target-openrisc: Tested-by: Jia Liu pro

Re: [Qemu-devel] [RFC qom-cpu 13/41] cpu: Drop cpu_model_str from CPU_COMMON

2013-09-04 Thread Jia Liu
@@ CPUUniCore32State *uc32_cpu_init(const char *cpu_model) } cpu = UNICORE32_CPU(object_new(object_class_get_name(oc))); env = cpu-env; -env-cpu_model_str = cpu_model; object_property_set_bool(OBJECT(cpu), true, realized, NULL); target-openrisc: Tested-by: Jia Liu pro...@gmail.com

Re: [Qemu-devel] [RFC qom-cpu 16/41] cpu: Move breakpoints field from CPU_COMMON to CPUState

2013-09-04 Thread Jia Liu
(cpu_pc, dc-pc); gen_exception(dc, EXCP_DEBUG); target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 19/41] cpu-exec: Change cpu_loop_exit() argument to CPUState

2013-09-04 Thread Jia Liu
) raise_exception_err(env1, cpu-exception_index, env1-error_code); #else -cpu_loop_exit(env1); +cpu_loop_exit(cpu); #endif } target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 18/41] exec: Change tlb_fill() argument to CPUState

2013-09-04 Thread Jia Liu
-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 20/41] translate-all: Change cpu_restore_state() argument to CPUState

2013-09-04 Thread Jia Liu
fault */ -cpu_restore_state(env, pc); +cpu_restore_state(cpu, pc); /* we restore the process signal mask as the sigreturn should do it (XXX: use sigsetjmp) */ target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 40/41] cputlb: Change tlb_flush() argument to CPUState

2013-09-04 Thread Jia Liu
); +tlb_flush(CPU(cpu), 1); } } target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 39/41] cputlb: Change tlb_flush_page() argument to CPUState

2013-09-04 Thread Jia Liu
); if (xtensa_option_enabled(env-config, XTENSA_OPTION_REGION_TRANSLATION)) { entry-paddr = pte REGION_PAGE_MASK; target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [RFC qom-cpu 33/41] cputlb: Change tlb_set_page() argument to CPUState

2013-09-04 Thread Jia Liu
, page_size); } else { cpu_restore_state(cs, retaddr); HELPER(exception_cause_vaddr)(env, env-pc, ret, vaddr); target-openrisc: Tested-by: Jia Liu pro...@gmail.com -- 1.8.1.4

Re: [Qemu-devel] [PULL 0/3] OpenRISC patch queue for 1.7

2013-08-26 Thread Jia Liu
Hi Peter, On Fri, Aug 23, 2013 at 10:09 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 21 August 2013 03:06, Jia Liu pro...@gmail.com wrote: This is my OpenRISC patch queue for 1.7, it have been well tested, please pull

Re: [Qemu-devel] [PATCH] hw/openrisc/openrisc_sim: Avoid using uninitialised variable 'entry'

2013-08-20 Thread Jia Liu
Hi Peter, On Tue, Aug 20, 2013 at 9:00 PM, Peter Maydell peter.mayd...@linaro.org wrote: Ping for qemu-trivial now 1.7 is open. Thank you, I'll send a PULL very soon. thanks -- PMM On 5 August 2013 19:24, Peter Maydell peter.mayd...@linaro.org wrote: clang warns that

[Qemu-devel] [PULL 2/3] hw/openrisc: Fix masking in openrisc_pic_cpu_handler()

2013-08-20 Thread Jia Liu
xi.w...@gmail.com Acked-by: Jia Liu pro...@gmail.com --- hw/openrisc/pic_cpu.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/hw/openrisc/pic_cpu.c b/hw/openrisc/pic_cpu.c index ca0b7c1..3fcee02 100644 --- a/hw/openrisc/pic_cpu.c +++ b/hw/openrisc/pic_cpu.c @@ -26,7

[Qemu-devel] [PULL 0/3] OpenRISC patch queue for 1.7

2013-08-20 Thread Jia Liu
to fetch changes up to 7717f248eebdcfe6de400404d0cf65dcb3633308: hw/openrisc: Avoid undefined shift in openrisc_pic_cpu_handler() (2013-08-21 09:31:42 +0800) Jia Liu (3): hw/openrisc: Avoid using uninitialised variable 'entry

[Qemu-devel] [PULL 3/3] hw/openrisc: Avoid undefined shift in openrisc_pic_cpu_handler()

2013-08-20 Thread Jia Liu
In C99 signed shift (1 31) is undefined behavior, since the result exceeds INT_MAX. Use 1U instead and move the shift after the check. Signed-off-by: Xi Wang xi.w...@gmail.com Acked-by: Jia Liu pro...@gmail.com --- hw/openrisc/pic_cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[Qemu-devel] [PULL 1/3] hw/openrisc: Avoid using uninitialised variable 'entry'

2013-08-20 Thread Jia Liu
/openrisc/openrisc_sim.c:91:19: note: uninitialized use occurs here cpu-env.pc = entry; ^ Fix this by not attempting to change the CPU's starting PC unless we actually loaded a kernel. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Jia Liu pro...@gmail.com

Re: [Qemu-devel] [PATCH v2 1/2] hw/openrisc: fix masking in openrisc_pic_cpu_handler()

2013-08-14 Thread Jia Liu
the masking of PICSR and PICMR: ((cpu-env.picsr (1 i)) (cpu-env.picmr (1 i))) To correctly mask bits, we should use the bitwise AND rather than the logical AND . Also, the loop is not necessary for masking. Simply use (cpu-env.picsr cpu-env.picmr). Cc: Jia Liu pro...@gmail.com Cc

Re: [Qemu-devel] [PATCH v2 2/2] hw/openrisc: avoid undefined shift in openrisc_pic_cpu_handler()

2013-08-14 Thread Jia Liu
Hi Xi, On Wed, Aug 14, 2013 at 1:55 PM, Xi Wang xi.w...@gmail.com wrote: In C99 signed shift (1 31) is undefined behavior, since the result exceeds INT_MAX. Use 1U instead and move the shift after the check. Cc: Jia Liu pro...@gmail.com Cc: Paolo Bonzini pbonz...@redhat.com Signed-off

Re: [Qemu-devel] [PATCH 0/2] Disassembly with external objdump

2013-08-09 Thread Jia Liu
Hi Richard, On Sat, Aug 10, 2013 at 3:19 AM, Richard Henderson r...@twiddle.net wrote: We have one host platform (aarch64), and three target platforms (openrisc, unicore32, xtensa) with no built-in disassembly support, thanks largely to gplv3 silliness. Thank you for doing this for or32.

Re: [Qemu-devel] [PATCH] hw/openrisc/openrisc_sim: Avoid using uninitialised variable 'entry'

2013-08-05 Thread Jia Liu
(QEMUMachineInitArgs *args) Thank you for using clang test it. Reviewed-by: Jia Liu pro...@gmail.com -- 1.7.9.5 Regards, Jia

Re: [Qemu-devel] [PATCH qom-cpu for-1.6] cpu: Partially revert cpu: Change qemu_init_vcpu() argument to CPUState

2013-07-28 Thread Jia Liu
); occ-parent_realize(dev, errp); } target-openrisc Tested-by: Jia Liu pro...@gmail.com diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 8215946..3c81798 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -7861,6 +7861,8 @@ static void

Re: [Qemu-devel] [PATCH] target-or32: fix masking in openrisc_pic_cpu_handler()

2013-07-28 Thread Jia Liu
Hi Xi, On Tue, Jan 22, 2013 at 11:57 PM, Xi Wang xi.w...@gmail.com wrote: A correct mask should be `x (1 i)', rather than `x (1 i)'. Also, in C99 signed shift (1 31) is undefined behavior, since the result exceeds INT_MAX; use 1U instead. Signed-off-by: Xi Wang xi.w...@gmail.com ---

Re: [Qemu-devel] [PATCH qom-cpu for-1.6] cpu: Fix VMSTATE_CPU() semantics

2013-07-28 Thread Jia Liu
registered for AlphaCPU (fe31e7374299c0c6172ce618b29bf2fecbd881c7) and OpenRISCCPU (da69721460e652072b6a3dd52b7693da21ffe237). Fix this. Cc: Richard Henderson r...@twiddle.net Cc: Jia Liu pro...@gmail.com Signed-off-by: Andreas Färber afaer...@suse.de --- exec.c | 5 - 1 file changed, 4

Re: [Qemu-devel] [RFC for-next 2/2] cpu: Move VMSTATE_CPU() into TYPE_CPU VMStateDescription

2013-07-28 Thread Jia Liu
vmstate_openrisc_cpu = { .minimum_version_id = 1, .minimum_version_id_old = 1, .fields = (VMStateField[]) { -VMSTATE_CPU(), VMSTATE_STRUCT(env, OpenRISCCPU, 1, vmstate_env, CPUOpenRISCState), VMSTATE_END_OF_LIST() } Tested-by: Jia Liu pro...@gmail.com

[Qemu-devel] [PULL 0/3] OpenRISC patch queue

2013-07-23 Thread Jia Liu
in openrisc_cpu_class_by_name (2013-07-23 18:32:30 +0800) Jia Liu (3): hw/openrisc: Indent typo hw/openrisc: Use stderr output instead of qemu_log target-openrisc: Free typename in openrisc_cpu_class_by_name hw

[Qemu-devel] [PULL 1/3] hw/openrisc: Indent typo

2013-07-23 Thread Jia Liu
Indent typo. Signed-off-by: Jia Liu pro...@gmail.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Andreas Färber afaer...@suse.de --- hw/openrisc/openrisc_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc

[Qemu-devel] [PULL 3/3] target-openrisc: Free typename in openrisc_cpu_class_by_name

2013-07-23 Thread Jia Liu
We should free typename here. Signed-off-by: Jia Liu pro...@gmail.com Reviewed-by: Andreas Färber afaer...@suse.de --- target-openrisc/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index 6d40f1b..e348df0 100644 --- a/target-openrisc/cpu.c

[Qemu-devel] [PULL 2/3] hw/openrisc: Use stderr output instead of qemu_log

2013-07-23 Thread Jia Liu
We should use stderr output instead of qemu_log in order to output ErrMsg onto the screen. Signed-off-by: Jia Liu pro...@gmail.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Andreas Färber afaer...@suse.de --- hw/openrisc/openrisc_sim.c | 4 ++-- 1 file changed, 2

[Qemu-devel] [PATCH v3 0/4] target-openrisc hw/openrisc: Some OpenRISC fix.

2013-07-22 Thread Jia Liu
, make any and or1200 works both OK. Jia Liu (4): hw/openrisc: Indent typo hw/openrisc: Use stderr output instead of qemu_log target-openrisc: Free typename target-openrisc: Fix cpu_model by name hw/openrisc/openrisc_sim.c | 6 +++--- target-openrisc/cpu.c | 17 + 2 files

[Qemu-devel] [PATCH v3 1/4] hw/openrisc: Indent typo

2013-07-22 Thread Jia Liu
Indent typo. Signed-off-by: Jia Liu pro...@gmail.com --- hw/openrisc/openrisc_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index 924438b..250f5b5 100644 --- a/hw/openrisc/openrisc_sim.c +++ b/hw/openrisc

[Qemu-devel] [PATCH v3 3/4] target-openrisc: Free typename

2013-07-22 Thread Jia Liu
We should free typename here. Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index 6d40f1b..e348df0 100644 --- a/target-openrisc/cpu.c +++ b/target-openrisc/cpu.c @@ -99,6 +99,7

[Qemu-devel] [PATCH v3 4/4] target-openrisc: Fix cpu_model by name

2013-07-22 Thread Jia Liu
Fix cpu_model by name, make any and or1200 works both OK. Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/cpu.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index e348df0..6637166 100644

[Qemu-devel] [PATCH v3 2/4] hw/openrisc: Use stderr output instead of qemu_log

2013-07-22 Thread Jia Liu
We should use stderr output instead of qemu_log in order to output ErrMsg onto the screen. Signed-off-by: Jia Liu pro...@gmail.com --- hw/openrisc/openrisc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index

Re: [Qemu-devel] [PATCH v3 3/4] target-openrisc: Free typename

2013-07-22 Thread Jia Liu
Hi Andreas, On Mon, Jul 22, 2013 at 4:56 PM, Jia Liu pro...@gmail.com wrote: We should free typename here. Signed-off-by: Jia Liu pro...@gmail.com Sorry I didn't know I need add Signed-off-by: Andreas Färber your@mail here. --- target-openrisc/cpu.c | 1 + 1 file changed, 1 insertion

Re: [Qemu-devel] [PATCH v3 4/4] target-openrisc: Fix cpu_model by name

2013-07-22 Thread Jia Liu
Hi Andreas and Peter, On Mon, Jul 22, 2013 at 5:29 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 22 July 2013 09:56, Jia Liu pro...@gmail.com wrote: Fix cpu_model by name, make any and or1200 works both OK. Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/cpu.c | 16

Re: [Qemu-devel] [PATCH v3 3/4] target-openrisc: Free typename

2013-07-22 Thread Jia Liu
On Mon, Jul 22, 2013 at 5:41 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 22 July 2013 10:37, Jia Liu pro...@gmail.com wrote: Hi Andreas, On Mon, Jul 22, 2013 at 4:56 PM, Jia Liu pro...@gmail.com wrote: We should free typename here. Signed-off-by: Jia Liu pro...@gmail.com Sorry I

Re: [Qemu-devel] [PATCH v3 4/4] target-openrisc: Fix cpu_model by name

2013-07-22 Thread Jia Liu
On Mon, Jul 22, 2013 at 5:43 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 22 July 2013 10:42, Jia Liu pro...@gmail.com wrote: Hi Andreas and Peter, On Mon, Jul 22, 2013 at 5:29 PM, Peter Maydell peter.mayd...@linaro.org wrote: This looks a bit odd. The commit message suggests it's

Re: [Qemu-devel] [PATCH v3 4/4] target-openrisc: Fix cpu_model by name

2013-07-22 Thread Jia Liu
On Mon, Jul 22, 2013 at 5:43 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 22 July 2013 10:42, Jia Liu pro...@gmail.com wrote: Hi Andreas and Peter, On Mon, Jul 22, 2013 at 5:29 PM, Peter Maydell peter.mayd...@linaro.org wrote: This looks a bit odd. The commit message suggests it's

[Qemu-devel] [PATCH v4 2/3] hw/openrisc: Use stderr output instead of qemu_log

2013-07-22 Thread Jia Liu
We should use stderr output instead of qemu_log in order to output ErrMsg onto the screen. Signed-off-by: Jia Liu pro...@gmail.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/openrisc/openrisc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v4 3/3] target-openrisc: Free typename in openrisc_cpu_class_by_name

2013-07-22 Thread Jia Liu
We should free typename here. Signed-off-by: Jia Liu pro...@gmail.com Reviewed-by: Andreas Färber afaer...@suse.de --- target-openrisc/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index 6d40f1b..e348df0 100644 --- a/target-openrisc/cpu.c

[Qemu-devel] [PATCH v4 1/3] hw/openrisc: Indent typo

2013-07-22 Thread Jia Liu
Indent typo. Signed-off-by: Jia Liu pro...@gmail.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/openrisc/openrisc_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index 924438b..250f5b5 100644

Re: [Qemu-devel] [PATCH] linux-user: Fix target_stat and target_stat64 for OpenRISC

2013-07-20 Thread Jia Liu
Hi Peter, On Fri, Jul 19, 2013 at 5:27 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 19 July 2013 01:25, Jia Liu pro...@gmail.com wrote: Hi Peter, On Thu, Jul 18, 2013 at 6:18 PM, Peter Maydell peter.mayd...@linaro.org wrote: Ping? Thank you, it looks good to me, please push

Re: [Qemu-devel] [PATCH] linux-user: Fix target_stat and target_stat64 for OpenRISC

2013-07-18 Thread Jia Liu
Hi Peter, On Thu, Jul 18, 2013 at 6:18 PM, Peter Maydell peter.mayd...@linaro.org wrote: Ping? Thank you, it looks good to me, please push it. thanks -- PMM On 6 July 2013 21:44, Peter Maydell peter.mayd...@linaro.org wrote: OpenRISC uses the asm-generic versions of target_stat and

Re: [Qemu-devel] [PATCH 3/4] target-openrisc: Free typename

2013-07-16 Thread Jia Liu
Hi Andreas, On Tue, Jul 16, 2013 at 10:19 PM, Andreas Färber afaer...@suse.de wrote: Am 16.07.2013 04:00, schrieb Jia Liu: We should free typename here. Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-openrisc

[Qemu-devel] [PATCH] hw/openrisc: typo in openrisc_sim

2013-07-15 Thread Jia Liu
2 indent typo. Signed-off-by: Jia Liu pro...@gmail.com --- hw/openrisc/openrisc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index 924438b..f0dabb9 100644 --- a/hw/openrisc/openrisc_sim.c +++ b/hw/openrisc

[Qemu-devel] [PATCH 1/2] target-openrisc: Free typename in cpu_class_by_name

2013-07-15 Thread Jia Liu
Add a g_free into openrisc_cpu_class_by_name to free typename. Signed-off-by: Jia Liu pro...@gmail.com --- target-openrisc/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index 6d40f1b..e348df0 100644 --- a/target-openrisc/cpu.c +++ b

[Qemu-devel] [PATCH 2/2] hw/openrisc: Use stderr output instead of qemu_log

2013-07-15 Thread Jia Liu
Here should be stderr output instead of qemu_log. Signed-off-by: Jia Liu pro...@gmail.com --- hw/openrisc/openrisc_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index 924438b..26bff75 100644 --- a/hw/openrisc

[Qemu-devel] [PATCH 0/2] target-openrisc hw/openrisc: Two OpenRISC fix.

2013-07-15 Thread Jia Liu
Fix OpenRISC CPU and sim broad, in cpu.c we should free typename, and in openrisc_sim.c we should use stderr output. Jia Liu (2): target-openrisc: free typename in cpu_class_by_name hw/openrisc: Use stderr output instead of qemu_log hw/openrisc/openrisc_sim.c | 2 +- target-openrisc/cpu.c

[Qemu-devel] [PATCH V2 0/4] target-openrisc hw/openrisc: Some OpenRISC fix.

2013-07-15 Thread Jia Liu
Fix OpenRISC CPU and sim broad, we should free typename and check cpu models by name in cpu.c, and we should use stderr output in openrisc_sim.c. Jia Liu (4): hw/openrisc: Indent typo hw/openrisc: Use stderr output instead of qemu_log target-openrisc: Free typename target-openrisc: Fix

[Qemu-devel] [PATCH V2 1/4] hw/openrisc: Indent typo

2013-07-15 Thread Jia Liu
Indent typo. Signed-off-by: Jia Liu pro...@gmail.com --- hw/openrisc/openrisc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index 924438b..f0dabb9 100644 --- a/hw/openrisc/openrisc_sim.c +++ b/hw/openrisc

  1   2   3   4   5   >