[Qemu-devel] Re: Missing singlestep for already-translated code?

2010-04-13 Thread takasi-y
Hi, So for the already-translated code, we will miss singlestep? At least SH4(and mips?) shows such behaviour. I think a patch below enables single stepping in such case, too. But, I'm not sure if this behaviour is on purpose, nor this patch is correct. /yoshii diff --git

[Qemu-devel] [PATCH] linux-user: rlimit conversion between host and target.

2010-04-11 Thread takasi-y
rlim_t conversion between host and target added. Otherwise there are some incorrect case like - RLIM_INFINITY on 32bit target - 64bit host. - RLIM_INFINITY on 64bit host - mips and sparc target ? - Big value(for 32bit target) on 64bit host - 32bit target. One is added into getrlimit, setrlimit,

[Qemu-devel] [PATCH] linux-user: do_shmdt(): Fix page_set_flags's 2nd arg.

2010-04-10 Thread takasi-y
2nd arg of page_set_flags() should be start+size, but size. Signed-off-by: Takashi YOSHII takas...@ops.dti.ne.jp --- linux-user/syscall.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a03e432..26c0fb4 100644 ---

[Qemu-devel] [PATCH] Fix conditional compilation case CONFIG_INOTIFY !CONFIG_INOTIFY1.

2010-03-28 Thread takasi-y
There is undefined reference to sys_inotify_init1() at do_syscall() when CONFIG_INOTIFY=y and CONFIG_INOTIFY1=n. We should undef TARGET_NR_inotify_init1 if CONFIG_INOTIFY1 is undefined, as it seems to be the strategy of conditional compilation here. Signed-off-by: Takashi YOSHII

[Qemu-devel] [PATCH] Fix page_check_range() wrap-around check when len=0.

2010-03-27 Thread takasi-y
Fix page_check_range() wrap-around check when len=0. write(1,,0) on linux-user emulation should be OK, but fails. This is a regression brought by 376a7909. This patch fixes it at the last of the calling path shown below, do_syscall:write - access_ok() - page_check_range(), as linux-kernel

[Qemu-devel] [PATCH] sh4 linux-user: Fix syscall pipe2() retval

2010-02-17 Thread takasi-y
On linux/sh4 pipe() return values by r0:r1 as SH C calling convention. pipe2() return values on memory as traditional unix way. Signed-off-by: Takashi YOSHII takas...@ops.dti.ne.jp --- linux-user/syscall.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH] sh4 linux-user: Save/restore fpu registers to signal context.

2010-02-17 Thread takasi-y
As todo comment in source code. And modify restore_sigcontext() to have three args as kernel's does. Signed-off-by: Takashi YOSHII takas...@ops.dti.ne.jp --- linux-user/signal.c | 27 +++ 1 files changed, 19 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH] sh4: Fix gdb read/write register

2010-02-17 Thread takasi-y
cpu_gdb_read_register(): Fix n={8...15} case. cpu_gdb_write_register(): Fix n={8...15} case and runaway case:. Signed-off-by: Takashi YOSHII takas...@ops.dti.ne.jp --- gdbstub.c | 27 ++- 1 files changed, 14 insertions(+), 13 deletions(-) diff --git a/gdbstub.c

[Qemu-devel] [PATCH] SH4 Fix missing 6th arg of syscall.

2007-11-20 Thread takasi-y
Hello, I found 6th arg for syscall is missing on SH4 linux-user emulation. This seems to be the cause of shared library mapping failure. I successfully run shared-lib'd binary, after applying following fix. /yoshii diff -u -r1.155 main.c --- a/linux-user/main.c 17 Nov 2007 01:37:43 -