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 a/target-sh4/translate.
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
2nd arg of page_set_flags() should be start+size, but size.
Signed-off-by: Takashi YOSHII
---
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
--- a/linux-user/syscall.c
+++ b/
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
---
linux-user/
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 d
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
---
gdbstub.c | 27 ++-
1 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index 80477be..3
As "todo" comment in source code.
And modify restore_sigcontext() to have three args as kernel's does.
Signed-off-by: Takashi YOSHII
---
linux-user/signal.c | 27 +++
1 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/linux-user/signal.c b/linux-user/signal
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
---
linux-user/syscall.c |9 ++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/linux-user/syscall.c b/linux-u
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 - 1.1