Re: [Qemu-devel] [PATCH 1/5] Avoid GCC extension ?:

2012-07-08 Thread Andreas Schwab
blauwir...@gmail.com writes: > +pstrcpy(bs->backing_format, sizeof(bs->backing_format), > +backing_fmt ? backing_file : ""); s/backing_file/backing_fmt/ Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01

[Qemu-devel] [PATCH] linux-user: identify running binary in /proc/$$/exe

2013-03-11 Thread Andreas Schwab
Some applications like to test /proc/$$/exe (where $$ is the own pid) to find out who they are. Handle it like /proc/self/exe. Also, do the same handling in readlinkat. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 22 ++ 1 file changed, 18 insertions(+), 4

[Qemu-devel] [PATCH] linux-user: fix setgroups/getgroups for non-UID16 archs

2013-04-09 Thread Andreas Schwab
Don't assume target_id is a short. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d3c26de..3f13d0b 100644 --- a/linux-user/syscall.c +++ b/linux-user/sysc

[Qemu-devel] [Bug 1356916] [NEW] Too small argv limit

2014-08-14 Thread Andreas Schwab
Public bug reported: Current kernels don't have a fixed argv/environ limit any more, but the user-space emulation of qemu is still using a fixed limit. This can cause execve to fail when it wouldn't on a real system. For example, the follwing command should not fail in the emulated environment:

[Qemu-devel] [Bug 1344320] [NEW] qemu-aarch64 cannot execute glibc

2014-07-18 Thread Andreas Schwab
Public bug reported: $ aarch64-linux-user/qemu-aarch64 -version qemu-aarch64 version 2.0.92, Copyright (c) 2003-2008 Fabrice Bellard $ aarch64-linux-user/qemu-aarch64 -d in_asm /daten/build/build-root/home/abuild/rpmbuild/BUILD/glibc-2.19.90/cc-base/elf/ld-linux-aarch64.so.1 host mmap_min_addr=

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Andreas Schwab
yscall always returns the break value, either the new one (on success) or the current one (on failure). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: handle /proc/$$ like /proc/self

2013-05-08 Thread Andreas Schwab
Some applications use /proc/$$/... (where $$ is the own pid) instead of /proc/self/... to refer to their own proc files. Extend the interception for open and readlink to handle this case. Also, do the same interception in readlinkat. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 63

Re: [Qemu-devel] [Bug 1254786] Re: qemu-m68k-static: illegal instruction ebc0 during debootstrap second stage

2013-12-01 Thread Andreas Schwab
ebc0 is a bitfield insn which the coldfire doesn't implement. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: implement F_[GS]ETOWN_EX

2014-03-06 Thread Andreas Schwab
F_[GS]ETOWN is replaced by F_[GS]ETOWN_EX inside the glibc fcntl wrapper. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 10 ++ linux-user/syscall_defs.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 2f573b8

Re: [Qemu-devel] [PATCH] linux-user: implement F_[GS]ETOWN_EX

2014-03-07 Thread Andreas Schwab
Please ignore this patch, it was prematurely sent. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: implement F_[GS]ETOWN_EX

2014-03-07 Thread Andreas Schwab
F_GETOWN is replaced by F_GETOWN_EX inside the glibc fcntl wrapper Signed-off-by: Andreas Schwab --- Only tested so far with the gnulib test-fcntl module, which mainly tests proper error handling only. --- linux-user/syscall.c | 36 linux-user

[Qemu-devel] [PATCH] Fix emulation of splice syscall

2015-02-04 Thread Andreas Schwab
The second and fourth argument are in/out parameters, store them back after the syscall. Also, the fourth argument was mishandled, and EFAULT handling was missing. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions

Re: [Qemu-devel] [PATCH] Fix emulation of splice syscall

2015-02-05 Thread Andreas Schwab
Peter Maydell writes: > Coding style demands braces for all these if statements. That must be a recent change. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[Qemu-devel] [PATCH] Fix emulation of splice syscall

2015-02-05 Thread Andreas Schwab
The second and fourth argument are in/out parameters, store them back after the syscall. Also, the fourth argument was mishandled, and EFAULT handling was missing. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions

Re: [Qemu-devel] Add CMP2 instruction

2014-11-07 Thread Andreas Schwab
F_ISA_A); My copy of the CFPRM doesn't list cmp2 as a valid coldfire insn. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: fix emulation of splice syscall

2015-03-10 Thread Andreas Schwab
The second and fourth argument are in/out parameters, store them back after the syscall. Also, the fourth argument was mishandled, and EFAULT handling was missing. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions

Re: [Qemu-devel] [PATCH] linux-user: fix emulation of splice syscall

2015-03-10 Thread Andreas Schwab
Peter Maydell writes: > What's changed? Only the title. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: fix undefined shift in copy_to_user_fdset

2013-04-09 Thread Andreas Schwab
If TARGET_ABI_BITS is bigger than 32 we shift by more than the size of int. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fa3039f..5abc16f 100644 --- a/linux-user

[Qemu-devel] [PATCH] linux-user: fix signal number range check

2013-06-15 Thread Andreas Schwab
When translating between host and target signal numbers keep negative numbers unchanged, avoiding access beyond array bounds. Signed-off-by: Andreas Schwab --- linux-user/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c

Re: [Qemu-devel] stale savannah git repo

2011-09-23 Thread Andreas Schwab
git repo. You don't need a fencepost account for that, just commit access to the qemu repo at savannah. (In any case the private ssh key needs to be accessible to the cron job.) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3

[Qemu-devel] [PATCH] ppc.ld: add rela.iplt and provide __rela_iplt_{start, end}

2011-04-11 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- ppc.ld |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ppc.ld b/ppc.ld index 5248ef1..18511ce 100644 --- a/ppc.ld +++ b/ppc.ld @@ -49,6 +49,12 @@ SECTIONS .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2

Re: [Qemu-devel] [PATCH for-2.5 03/30] m68k: introduce read_imXX() functions

2015-08-09 Thread Andreas Schwab
Laurent Vivier writes: > Read a 8, 16 or 32bit immediat constant. > > An Immediat constant is stored in the instruction opcode and s/Immediat/immediate/ Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 &qu

Re: [Qemu-devel] [PATCH for-2.5 15/30] m68k: add more modes to movem

2015-08-12 Thread Andreas Schwab
--, mask >>= 1) { > > This has got to be wrong. Just because it's pre-decrement doesn't mean > you should skip all of the loads. Pre-dec only supports reg-to-mem, and is special because mask is bit reversed. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fi

Re: [Qemu-devel] [PATCH for-2.5 05/30] m68k: define operand sizes

2015-08-12 Thread Andreas Schwab
it as an > incrementer/decrementer. I agree, it's a strange idea. Those uses are really opsize_bytes(OS_BYTE), technically. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-14 Thread Andreas Schwab
oldfire always clears the overflow bit. */ I think this refers to the muls/mulu insn, where the CF always clears V. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-14 Thread Andreas Schwab
Richard Henderson writes: > Ah. Except placed here it also applies to and/or/move too. Well, none of those ever overflow in the first place. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for s

Re: [Qemu-devel] Can we require a newer Python?

2015-09-04 Thread Andreas Schwab
Markus Armbruster writes: > I vaguely remember we settled for GLib 2.22 due to some version of SLES. > If that's correct: what version of Python does it provide? SLES-11 has always provided python 2.6. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58C

Re: [Qemu-devel] [PATCH 2/2] m68k: Implement 680x0 processors family 96 bit FPU

2015-06-22 Thread Andreas Schwab
Laurent Vivier writes: > +#if defined(TARGET_M68K) > +#define floatx80_default_nan_high 0x7FFF > +#define floatx80_default_nan_low LIT64(0x4000) The default NaN generated by the m68k FPU is all-bits-one (this is true for all formats). Andreas. -- Andreas Schwab, sch

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
) only used in the stage1 compiler (which is built unoptimized) isn't handled correctly yet. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
Laurent Vivier writes: > BTW, Adrian is using this branch (680x0-master-dev) for months to build > Debian packages. I don't trust it yet until it can bootstrap gcc. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 827

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz writes: > On 05/06/2016 12:15 PM, Andreas Schwab wrote: >> Laurent Vivier writes: >> >>> BTW, Adrian is using this branch (680x0-master-dev) for months to build >>> Debian packages. >> >> I don't trust it yet until i

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz writes: > On 05/06/2016 02:44 PM, Andreas Schwab wrote: >> You are cheating, you override BOOT_CFLAGS. > > I'm not doing anything. Yes, you do. See the build log. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz writes: > On 05/06/2016 03:24 PM, Andreas Schwab wrote: >> John Paul Adrian Glaubitz writes: >> >>> On 05/06/2016 02:44 PM, Andreas Schwab wrote: >>>> You are cheating, you override BOOT_CFLAGS. >>> >>> I'm

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
Laurent Vivier writes: > What is the version of gcc? It doesn't matter, any version. > what are your configure parameters? Nothing special. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And n

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
_Z15collect_executePKcPPcS0_S0_ib + move.l %d4,%a1 + jsr (%a1) move.l %a0,-(%sp) pea .LC23 - move.l %d4,%a0 - jsr (%a0) + jsr _Z12collect_waitPKcP7pex_obj move.l %d0,%d3 lea (32,%sp),%sp jeq .L368 Andreas. -- Andreas Schwab, sch

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread Andreas Schwab
Andreas Schwab writes: > Here is a testcase: > > when compiling tlink.c from the gcc sources with gcc-6 r234449 (which > was bootstrapped in aranym): > > $ g++ -fno-PIE -c -fomit-frame-pointer -O2 -DIN_GCC -fno-exceptions > -fno-rtti -fasynchronous-unwind-tables -W

Re: [Qemu-devel] [PATCH 19/52] target-m68k: terminate cpu dump with newline

2016-05-06 Thread Andreas Schwab
Laurent Vivier writes: > From: Andreas Schwab > > Signed-off-by: Andreas Schwab > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target-m68k/translate.c b/target-m68k/translate

Re: [Qemu-devel] [PATCH 30/52] target-m68k: add scc/dbcc

2016-05-06 Thread Andreas Schwab
p_tb(s, 1, base + offset); >> +gen_set_label(l1); >> +update_cc_op(s); >> +gen_jmp_tb(s, 0, s->pc); > > Pull the update_cc_op up to the top, so as to only generate one copy. This misses a followup patch which moves it into gen_jmpcc. In the current form this

[Qemu-devel] [PATCH] linux-user: fix support for timerfd_create on arm

2015-05-12 Thread Andreas Schwab
On arm the original timerfd syscall was reused for the new timerfd_create syscall. Signed-off-by: Andreas Schwab --- linux-user/arm/syscall_nr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h index 7d7be7c..53552be

[Qemu-devel] Re: AIX emulated on x86 host

2010-10-30 Thread Andreas Schwab
ll you need is "make all-gcc". Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] Re: AIX emulated on x86 host

2010-11-07 Thread Andreas Schwab
fpic and > -fpie; for an RTAS blob relocated by OpenBIOS). Does it understand ELF PIC relocations? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] Re: [PATCH 1/5] HACKING: add preprocessor rules

2010-08-15 Thread Andreas Schwab
In C99 you cannot have an empty __VA_ARGS__. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] Re: [PATCH 09/18] block/qcow2.c: fix warnings with _FORTIFY_SOURCE

2009-12-20 Thread Andreas Schwab
;cluster_size) { > +ret = -errno; > +goto exit; > +} If you have a short write you'll get an undefined errno. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] New Qemu Crash found with evidence of memory corruption

2007-12-16 Thread Andreas Schwab
hist_add(const char *cm /* Need to get one free slot */ free(term_history[0]); memcpy(term_history, &term_history[1], - &term_history[TERM_MAX_CMDS] - &term_history[1]); + (TERM_MAX_CMDS - 1) * sizeof(char *)); term_history[TERM_MAX_CMD

Re: [Qemu-devel] [PATCH] ensure all invocations to bdrv_{read, write} use (uint8_t *) for its third parameter

2008-01-04 Thread Andreas Schwab
nt8_t type >> >> Do we have a host where this actually makes a difference? > > I believe Perl makes sizeof(char) checks, so there likely is some platform > where sizeof(char) > 1. Not in C. sizeof(char) == 1 by definition. Also CHAR_BIT >= 8, so uint8_t can never be wider tha

Re: [Qemu-devel] Will qemu emulate m68k macintoshes ?

2008-01-18 Thread Andreas Schwab
partition (atari partition table and mac partition table are not > compatible). You'll also need a different kernel, since Aranym emulates an atari, and the atari kernel probably won't run on a mac (and vice versa). Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linu

Re: [Qemu-devel] Will qemu emulate m68k macintoshes ?

2008-01-18 Thread Andreas Schwab
mu ? No. > What is missing in qemu to be able to use debian m68k binaries in > user-mode ? to boot linux ? Even with the patch there are still quite some things missing. For a full system emulation you need more supervisor level instructions, and a proper fpu emulation is missing as well

Re: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x

2008-02-05 Thread Andreas Schwab
Samuel Thibault <[EMAIL PROTECTED]> writes: > Mmm, actually, shouldn't qemu use a more "private" network like a > RFC1918 172.16.0.0/12 network? In which way is 172.16.0.0/12 more "private" than 10.0.0.0/8? Andreas. -- Andreas Schwab, SuSE Labs, [EMAI

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Andreas Schwab
Nigel Horne <[EMAIL PROTECTED]> writes: > I can't remember now what sizeof(int) and sizeof(char *) were on m68k > machines. It depends. Try -mshort. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Andreas Schwab
Nigel Horne <[EMAIL PROTECTED]> writes: > Andreas Schwab wrote: >> Nigel Horne <[EMAIL PROTECTED]> writes: >> >>> I can't remember now what sizeof(int) and sizeof(char *) were on m68k >>> machines. >> >> It depends. Try -mshort. &

Re: [Qemu-devel] Triple-fault causes abort(), which doesn't end pointer grabs

2007-05-08 Thread Andreas Schwab
Samuel Bronson <[EMAIL PROTECTED]> writes: > So, if the guest system has a triple-fault, and I had had my mouse grabbed, it > stays grabbed, so that X has to be restarted (as far as I know). Not if you have XF86_Ungrab bound to a key. Andreas. -- Andreas Schwab, SuSE Labs, [EMA

Re: [Qemu-devel] [PATCH] configure

2007-05-09 Thread Andreas Schwab
;> about a command or a csh command alias. >> >> IMO, for a /bin/sh (or bash) script, using the "type" command would >> be a better idea. > > "which" returns the first path, "type" returns all paths. You want "type -p". Andreas. -

Re: [Qemu-devel] [PATCH] configure

2007-05-09 Thread Andreas Schwab
"Jeff Chua" <[EMAIL PROTECTED]> writes: > # type awk > awk is /bin/awk > awk is /usr/bin/awk > # type -p awk > /bin/awk > /usr/bin/awk You are not using type, but type -a. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products Gmb

[Qemu-devel] [M68K] Full extension word format addressing mode

2007-05-26 Thread Andreas Schwab
((uint32_t)lduw_code(s->pc)) << 16; - s->pc += 2; -im |= lduw_code(s->pc); -s->pc += 2; -return im; -} - - /* Update the CPU env CC_OP state. */ static inline void gen_flush_cc_op(DisasContext *s) { -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [M68K] Full extension word format addressing mode

2007-05-26 Thread Andreas Schwab
Paul Brook <[EMAIL PROTECTED]> writes: > On Saturday 26 May 2007, Andreas Schwab wrote: >> This patch implements the full extension word format addressing mode in >> the m68k emulation. I have manually verified that it gets all cases >> right. >

[Qemu-devel] Fixes for ia64 host

2007-06-25 Thread Andreas Schwab
name)) = &&label ## n;\ goto *(void *)(((TranslationBlock *)tbparam)->tb_next[n]);\ label ## n: ;\ -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] [PATCH] Fix environ termination

2007-06-27 Thread Andreas Schwab
); } -dst = NULL; /* NULL terminate target_environ */ +*dst = NULL; /* NULL terminate target_environ */ if (loader_exec(filename, argv+optind, target_environ, regs, info) != 0) { printf("Error loading %s\n", filename); -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]

[Qemu-devel] [PATCH] Fix statfs(64) syscall wrapper

2007-07-02 Thread Andreas Schwab
; uint32_t f_spare[5]; @@ -1359,7 +1363,7 @@ struct target_statfs64 { uint64_t f_bavail; uint64_t f_files; uint64_t f_ffree; - int f_fsid; + target_fsid_t f_fsid; uint32_t f_namelen; uint32_t f_frsize; uint32_t f_spare[5]; -- Andreas

Re: [Qemu-devel] [PATCH] linux-user strace

2007-07-20 Thread Andreas Schwab
alue, but host_to_target_errno returns the errno value for the target, doesn't it? Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [PATCH] linux-user strace

2007-07-21 Thread Andreas Schwab
Stuart Anderson <[EMAIL PROTECTED]> writes: > On Fri, 20 Jul 2007, Andreas Schwab wrote: > >> Stuart Anderson <[EMAIL PROTECTED]> writes: >> >>> Index: qemu/linux-user/syscall.c >>> ===

Re: [Qemu-devel] Comment for Solaris fix for the HPTC

2007-09-16 Thread Andreas Schwab
limit for unsigned long long. If your compiler does not support the long long type then ULONG_LONG_MAX should not be defined either. Instead, vl.c should use UINT64_MAX. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] Another MIPS quiet NaN fix

2007-09-24 Thread Andreas Schwab
case); so does a.high >> 41, which copies it from the > original NaN. I think this routine should not force a quiet or > signalling NaN, but just preserve the input NaN's signalling-ness. You may need to make sure that at least one mantissa bit is set. Andreas. -- Andreas Sc

Re: [Qemu-devel] error compiling hw/sh7750.c

2007-11-11 Thread Andreas Schwab
1:11 2007 > +++ qemu/hw/sh7750.c Sun Nov 11 16:13:13 2007 > @@ -29,6 +29,9 @@ > #include "sh7750_regnames.h" > #include "sh_intc.h" > > +#undef NULL > +#define NULL ((void *)0) This does not make it better, since sizeof(void) is still not allowed in C. A

Re: [Qemu-devel] [PATCH] Allow setting the vendor_id string with x86's -cpu option

2007-12-09 Thread Andreas Schwab
; + + (val[6] << 16) + (val[7] << 24); > +x86_cpu_def->vendor3 = val[8] + (val[9] << 8) > + + (val[10] << 16) + (val[11] << 24); That will do the wrong thing with the si

[Qemu-devel] [PATCH] Fix char signedness

2006-10-27 Thread Andreas Schwab
gned char float64_compare( float64, float64 STATUS_PARAM ); +signed char float64_compare_quiet( float64, float64 STATUS_PARAM ); char float64_is_signaling_nan( float64 ); INLINE float64 float64_abs(float64 a) -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfel

Re: [Qemu-devel] [PATCH] Fix char signedness

2006-10-27 Thread Andreas Schwab
Johannes Schindelin <[EMAIL PROTECTED]> writes: > It has been a really long time I have been working on a broken system that > did not default to "signed". The only thing that is broken is your knowlege of C. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] Su

Re: [Qemu-devel] [PATCH] pcnet32 driver change, please test

2007-03-03 Thread Andreas Schwab
ilers and SPARC compilers over the years. > > I'm fairly sure I've seen targets that use other bitfield orderings, though I > can't remember offhand what they were. Bi-endian targets are examples of this. The bitfield ordering is normally independent of the selected byte order. F

Re: [Qemu-devel] [PATCH] pcnet32 driver change, please test

2007-03-03 Thread Andreas Schwab
dering and *bit* ordering. The former always follows the byte ordering, whereas the latter is only a property of the ISA and has no influence on the ABI or API. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fin

Re: [Qemu-devel] [PATCH] pcnet32 driver change, please test

2007-03-03 Thread Andreas Schwab
"M. Warner Losh" <[EMAIL PROTECTED]> writes: > True, but that's not what the original poster in this thread was > asking. Right. > Answering the different question is just confusing to the > original poster. It was actually me who was confused. Andreas. --

Re: [Qemu-devel] [PATCH] Add info commands for serial/parallel devices

2007-03-20 Thread Andreas Schwab
"M. Warner Losh" <[EMAIL PROTECTED]> writes: > Const does *NOT* imply that you don't own the memory. Its narrow > meaning is just that the object won't be changed through this > pointer/reference. But free _does_ change the object. Andreas. -- Andreas

Re: [Qemu-devel] Parallel Port Support

2005-12-14 Thread Andreas Schwab
Johannes Schindelin <[EMAIL PROTECTED]> writes: > CVSROOT is :pserver:[EMAIL PROTECTED]:/cvsroot/qemu ^^^ That should be "sources". Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products Gm

Re: [Qemu-devel] [PATCH] reduce magic numbers length to 16 bytes (qemu-binfmt-conf.sh)

2006-03-11 Thread Andreas Schwab
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 > > Using only the first 16 bytes avoids the need to have separate entries > for i386 and i486, given that they are emulated by the same program > (qemu-i386). How would you distinguish it from an arm or mipsel binary? Andreas

Re: Boot failure after QEMU's upgrade to OpenSBI v1.3 (was Re: [PATCH for-8.2 6/7] target/riscv: add 'max' CPU type)

2023-07-19 Thread Andreas Schwab
I cannot see the 'tag' v1.3.1 being populated in the opensbi > git repo. Am I missing anything? You need to run git fetch --tags, because the tag is not part of any branch, thus not fetched automatically. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-03 Thread Andreas Schwab
ext. This breaks the testsuite of libunwind. The test Gtest-resume-sig and all dependent tests hang. Reverting this commit fixes them. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-03 Thread Andreas Schwab
= 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a1dc8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2e1050,0x2b2a21a8,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a21a8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a2268,NULL,8) = 0 30962 read(3,0xab2a2747,1) = 1 30962

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-03 Thread Andreas Schwab
Also tested with master, same result. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-06 Thread Andreas Schwab
= 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a1dc8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2e1050,0x2b2a21a8,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a21a8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a2268,NULL,8) = 0 30962 read(3,0xab2a2747,1) = 1 30962

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-28 Thread Andreas Schwab
On Mär 06 2024, Alistair Francis wrote: > On Sun, Mar 3, 2024 at 8:34 PM Andreas Schwab wrote: >> >> On Jan 28 2024, Michael Tokarev wrote: >> >> > From: Richard Henderson >> > >> > A typo in sizeof_reg put the registers at the wrong offset. &g

[Qemu-devel] [PATCH] linux-user: Implement membarrier syscall

2019-05-13 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f5ff6f5dc8..80399f4eb0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -313,6 +313,9 @@ _syscall3(int, getrandom

[Qemu-devel] [PATCH] linux-user: implement getsockopt SO_RCVTIMEO and SO_SNDTIMEO

2019-05-13 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d113a65831..ba5775a94e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] [PATCH] roms/Makefile: fix command for opensbi64-sifive_u

2019-08-12 Thread Andreas Schwab
Copy the correct firmware file Signed-off-by: Andreas Schwab --- roms/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/Makefile b/roms/Makefile index dc70fb5aea..775c963f9d 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -183,7 +183,7 @@ opensbi64-sifive_u

[PATCH] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
Do not reverse the order of envionment variables in the target environ array relative to the incoming environ order. Some testsuites depend on a specific order, even though it is not defined by any standard. Signed-off-by: Andreas Schwab --- linux-user/main.c | 7 ++- 1 file changed, 6

[PATCH v2] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
Do not reverse the order of environment variables in the target environ array relative to the incoming environ order. Some testsuites depend on a specific order, even though it is not defined by any standard. Signed-off-by: Andreas Schwab --- linux-user/main.c | 6 ++ 1 file changed, 6

Re: [PATCH v2] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
On Mär 29 2023, Daniel P. Berrangé wrote: > On Wed, Mar 29, 2023 at 03:55:13PM +0200, Andreas Schwab wrote: >> Do not reverse the order of environment variables in the target environ >> array relative to the incoming environ order. Some testsuites depend on a >> specific ord

Re: [PATCH v2] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
On Mär 29 2023, Philippe Mathieu-Daudé wrote: > On 29/3/23 16:00, Daniel P. Berrangé wrote: >> On Wed, Mar 29, 2023 at 03:55:13PM +0200, Andreas Schwab wrote: >>> Do not reverse the order of environment variables in the target environ >>> array relative to the in

[PATCH v3] linux-user, bsd-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
Do not reverse the order of environment variables in the target environ array relative to the incoming environ order. Some testsuites depend on a specific order, even though it is not defined by any standard. Signed-off-by: Andreas Schwab --- bsd-user/main.c | 10 +- linux-user

[PATCH] linux-user: implement more loop ioctls

2021-11-22 Thread Andreas Schwab
LOOP_CONFIGURE is now used by losetup, and it cannot cope with ENOSYS. Signed-off-by: Andreas Schwab --- linux-user/ioctls.h| 4 linux-user/linux_loop.h| 2 ++ linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 6 ++ 4 files changed, 16 insertions(+) diff

[PATCH v2] linux-user: implement more loop ioctls

2021-11-22 Thread Andreas Schwab
LOOP_CONFIGURE is now used by losetup, and it cannot cope with ENOSYS. Signed-off-by: Andreas Schwab --- v2: fix s/loop_configure/loop_config/ typo linux-user/ioctls.h| 4 linux-user/linux_loop.h| 2 ++ linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 6

Re: [PATCH v3] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-08 Thread Andreas Schwab
On Mai 05 2023, Laurent Vivier wrote: > [PATCH qemu v2] linux-user: Emulate /proc/cpuinfo output for riscv > https://patchew.org/QEMU/167873059442.9885.1515208531657524845...@git.sr.ht/ This looks better. You can drop my patch. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key finge

[PATCH] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-02 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 69f740ff98..c72456a34b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

Re: [PATCH] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-02 Thread Andreas Schwab
On Mai 02 2023, Palmer Dabbelt wrote: > On Tue, 02 May 2023 06:44:00 PDT (-0700), sch...@suse.de wrote: >> Signed-off-by: Andreas Schwab >> --- >> linux-user/syscall.c | 30 -- >> 1 file changed, 28 insertions(+), 2 deletions(-) &g

Re: [PATCH] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-03 Thread Andreas Schwab
On Mai 02 2023, Andreas Schwab wrote: > None of the currently defined cpus are non-GC cpus (except sifive_e, but > that is not suitable for user-space anyway), and there doesn't appear to > be any properties defined for changing the supported extensions. Actually, modifying the

[PATCH v2] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-03 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- v2: dynmically compute the isa string linux-user/syscall.c | 55 ++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 69f740ff98..6df138c8b6 100644 --- a

[PATCH v3] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-03 Thread Andreas Schwab
>From 912af433fa5d93ce81d2054135ed475ab7462d2d Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 18 Apr 2023 11:54:01 +0200 Signed-off-by: Andreas Schwab --- v3: fix isa order linux-user/syscall.c | 55 ++-- 1 file changed, 53 insertions(+)

Re: [PATCH v3] linux-user, bsd-user: preserve incoming order of environment variables in the target

2023-05-22 Thread Andreas Schwab
Ping? -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH for 7.1] linux-user: fix compat with glibc >= 2.36 sys/mount.h

2022-10-01 Thread Andreas Schwab
GETBSZ _IO(0x00,2) -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

linux-user crash in python test

2024-06-24 Thread Andreas Schwab
dumped) -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: linux-user crash in python test

2024-06-24 Thread Andreas Schwab
On Jun 24 2024, Peter Maydell wrote: > Just to check, does the python you're running this on > have the change from > https://github.com/python/cpython/pull/110659 Yes, this is python 3.11.9. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F

linux-user cannot allocate stack memory on riscv64 host due to non-zero guest_base

2024-06-25 Thread Andreas Schwab
base in setup_arg_pages into a host mmap call with non-zero base. On other hosts like x86_64 or aarch64, guest_base remains zero and the issue does not occur. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for some

Re: linux-user cannot allocate stack memory on riscv64 host due to non-zero guest_base

2024-06-26 Thread Andreas Schwab
-B option or choose a different value) -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

  1   2   >