[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 sch...@linux-m68k.org --- linux-user/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/signal.c b

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.

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 GmbH, Maxfeldstraße 5, 90409

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

2006-03-11 Thread Andreas Schwab
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. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products

[Qemu-devel] [PATCH] Fix char signedness

2006-10-27 Thread Andreas Schwab
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, Maxfeldstraße 5, 90409

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] SuSE Linux Products GmbH

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

2007-03-03 Thread Andreas Schwab
offhand what they were. Bi-endian targets are examples of this. The bitfield ordering is normally independent of the selected byte order. For example, big-endian MIPS has little endian bit order. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5

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

2007-03-03 Thread Andreas Schwab
. 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 fingerprint = 58CA 54C7 6D53 942B

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. -- Andreas Schwab, SuSE Labs, [EMAIL

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 Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux

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, Germany PGP key fingerprint

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. That's not much help, I'm sorry to say, because you need an m68k machine to use

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, [EMAIL PROTECTED] SuSE

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 GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key

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

2007-05-26 Thread Andreas Schwab
read_im32(DisasContext *s) -{ -uint32_t im; -im = ((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

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. +if ((ext 0x80) == 0) { +/* base

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

2010-10-30 Thread Andreas Schwab
land. So all 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
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
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
; +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.

[Qemu-devel] Fixes for ia64 host

2007-06-25 Thread Andreas Schwab
*)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] SuSE Linux

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

2007-07-20 Thread Andreas Schwab
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] Comment for Solaris fix for the HPTC

2007-09-16 Thread Andreas Schwab
herring. ULONG_MAX is the limit for unsigned long, and ULONG_LONG_MAX is the 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

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

2007-09-24 Thread Andreas Schwab
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 Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH

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

2007-11-11 Thread Andreas Schwab
@@ #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. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP

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

2008-01-04 Thread Andreas Schwab
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 than char. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH

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

2008-01-18 Thread Andreas Schwab
won't run on a mac (and vice versa). 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] Will qemu emulate m68k macintoshes ?

2008-01-18 Thread Andreas Schwab
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. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL

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, [EMAIL PROTECTED] SuSE Linux Products GmbH

Re: [Qemu-devel] stale savannah git repo

2011-09-23 Thread Andreas Schwab
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 44D5 214B 8276 4ED5 And now

[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 sch...@linux-m68k.org --- 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

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 01D3 44D5 214B 8276 4ED5 And now

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Andreas Schwab
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: 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 sch...@suse.de --- 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

[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 sch...@suse.de --- 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

[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 sch...@suse.de --- linux-user

[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 sch...@suse.de --- linux-user/syscall.c | 22 ++ 1 file changed, 18

[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] [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 sch...@suse.de --- 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

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 sch...@suse.de --- Only tested so far with the gnulib test-fcntl module, which mainly tests proper error handling only. --- linux-user/syscall.c | 36 linux

[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

Re: [Qemu-devel] Add CMP2 instruction

2014-11-07 Thread Andreas Schwab
); 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] 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 sch...@suse.de --- linux-user/syscall.c | 16 +--- 1 file changed, 13 insertions(+), 3

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

2015-02-05 Thread Andreas Schwab
Peter Maydell peter.mayd...@linaro.org 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

[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 sch...@suse.de --- linux-user/syscall.c | 22 ++ 1 file changed, 18 insertions

[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 sch...@suse.de --- linux-user/syscall.c | 22 ++ 1 file changed, 18 insertions

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

2015-03-10 Thread Andreas Schwab
Peter Maydell peter.mayd...@linaro.org 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 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 sch...@suse.de --- 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

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

2015-06-22 Thread Andreas Schwab
Laurent Vivier laur...@vivier.eu 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

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

2015-08-09 Thread Andreas Schwab
Laurent Vivier laur...@vivier.eu 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

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

2015-08-14 Thread Andreas Schwab
/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-15 Thread Andreas Schwab
Richard Henderson r...@twiddle.net 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

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

2015-08-12 Thread Andreas Schwab
. 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 fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 And now

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] Can we require a newer Python?

2015-09-04 Thread Andreas Schwab
Markus Armbruster <arm...@redhat.com> 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

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

2016-05-06 Thread Andreas Schwab
;> +gen_jmp_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 c

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

2016-05-06 Thread Andreas Schwab
Laurent Vivier <laur...@vivier.eu> writes: > From: Andreas Schwab <sch...@linux-m68k.org> > > Signed-off-by: Andreas Schwab <sch...@linux-m68k.org> > Signed-off-by: Laurent Vivier <laur...@vivier.eu> > --- > target-m68k/translate.c | 2 +- > 1 file ch

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

2016-05-06 Thread Andreas Schwab
Laurent Vivier <laur...@vivier.eu> 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 4

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 <sch...@linux-m68k.org> 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 -fas

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

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> writes: > On 05/06/2016 03:24 PM, Andreas Schwab wrote: >> John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> writes: >> >>> On 05/06/2016 02:44 PM, Andreas Schwab wrote: >>>> You are

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
John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> 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.or

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

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> writes: > On 05/06/2016 12:15 PM, Andreas Schwab wrote: >> Laurent Vivier <laur...@vivier.eu> writes: >> >>> BTW, Adrian is using this branch (680x0-master-dev) for months to build >>> Debia

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

2016-05-06 Thread Andreas Schwab
Laurent Vivier <laur...@vivier.eu> 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 175

Re: [Qemu-devel] [PATCH v2 00/16] target-m68k: implement 680x0 FPU

2017-01-30 Thread Andreas Schwab
ne and in floatx80 it is the MSB. An Intel Extended also has a different exponent bias than a Motorola Extended in the denormal range. In other words, for the latter the bias doesn't change between normal and denormal numbers. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 5

Re: [Qemu-devel] [PATCH v2 02/16] softloat: disable floatx80_invalid_encoding() for m68k

2017-01-30 Thread Andreas Schwab
0/60 don't support denormal/unnormal in hardware and lets the support library handle them, which presumably works the same way as the 68881/2.) 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 v3 15/16] target-m68k: add more FPU instructions

2017-02-17 Thread Andreas Schwab
On Feb 17 2017, Richard Henderson <r...@twiddle.net> wrote: > On 02/16/2017 09:18 PM, Andreas Schwab wrote: >> There is no guarantee that the host long double has the same range and >> precision as floatx80. > > Indeed not. However, do you have another plan for implem

[Qemu-devel] [PATCH] linux-user: remove all traces of qemu from /proc/self/cmdline

2016-09-28 Thread Andreas Schwab
Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 47 +++-

Re: [Qemu-devel] [PULL for-2.8 0/2] target-alpha update

2016-11-21 Thread Andreas Schwab
Fetched in submodule path 'roms/qemu-palcode', but it did not contain f3c7e44c70254975df2a00af39701eafbac4d471. Direct fetching of that commit failed. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "An

Re: [Qemu-devel] [PULL for-2.8 0/2] target-alpha update

2016-11-22 Thread Andreas Schwab
Sorry, I forgot to update the url of the submodule. Just editing .git/config isn't enough. 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] target-m68k: Implement bfffo

2016-11-15 Thread Andreas Schwab
c gives the same wrong opcode on the bfffo description page. It > confused me for some time until I scrolled to the opcode map at the end of > the document, where it is correctly identified as EDC0. The printed manual has the correct opcode, it is only wrong in the PDF. 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: remove all traces of qemu from /proc/self/cmdline

2016-10-31 Thread Andreas Schwab
Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 47 +++-

[Qemu-devel] [PATCH] qemu-binfmt-conf.sh: Fix m68k_mask

2017-03-21 Thread Andreas Schwab
The m68k mask should not remove the low bit of the ELF version field and should ignore the OS/ABI field. Signed-off-by: Andreas Schwab <sch...@suse.de> --- scripts/qemu-binfmt-conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qemu-binfmt-conf.sh b/script

[Qemu-devel] [PATCH] linux-user: remove all traces of qemu from /proc/self/cmdline

2017-03-20 Thread Andreas Schwab
Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 47 +++-

Re: [Qemu-devel] [PATCH] qemu-binfmt-conf.sh: Fix m68k_mask

2017-03-22 Thread Andreas Schwab
On Mär 22 2017, Thomas Huth <h...@tuxfamily.org> wrote: > On 21.03.2017 10:38, Andreas Schwab wrote: >> The m68k mask should not remove the low bit of the ELF version field and >> should ignore the OS/ABI field. > > Did you encounter a problem with a real binar

Re: [Qemu-devel] /usr/bin/m4: internal error detected

2017-12-01 Thread Andreas Schwab
sh4 [2]. It's a bug in qemu-linux-user, which ignores CLONE_VFORK, turning vfork into fork. This breaks the expected semantics of vfork (VM sharing and blocking the child until exec). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: [Qemu-devel] qemu:handle_cpu_signal received signal outside vCPU context

2018-05-30 Thread Andreas Schwab
On Mär 19 2018, Michael Clark wrote: > On Mon, Mar 19, 2018 at 9:17 AM, Andreas Schwab wrote: > >> I'm seeing this error while building gedit for riscv64 with linux-user >> emulation: >> >> $ LD_LIBRARY_PATH=gedit/.libs qemu-riscv64 gedit/.libs/gedit

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
lags_tbl))); > > You can't use fcntl_flags_tbl Of course! I was confused by another patch I was working on which does need such a conversion. :-/ 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."

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
On Jan 23 2018, Laurent Vivier <laur...@vivier.eu> wrote: > And, please, test it (build/run). This was tested by bootstrapping openSUSE Factory for RISC-V. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7

[Qemu-devel] [PATCH v2] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
This is needed for new architectures like RISC-V which do not provide any other rename-like syscall. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/linux-user/syscall.c b/linu

[Qemu-devel] [PATCH v2] linux-user: Implement ioctl cmd TIOCGPTPEER

2018-01-25 Thread Andreas Schwab
With glibc 2.27 the openpty function will prefer the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab <sch...@suse.de> --- v2: handle host with old kernel headers --- linux-user/aarch64/termbits.h| 2 ++ linux-user/alpha/termbits.h | 1 + linux-user/arm/termbits.h| 1 +

[Qemu-devel] [PATCH v3] linux-user: Implement ioctl cmd TIOCGPTPEER

2018-01-29 Thread Andreas Schwab
With glibc 2.27 the openpty function prefers the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab <sch...@suse.de> Reviewed-by: Laurent Vivier <laur...@vivier.eu> --- v2: handle host with old kernel headers v3: fix sparc typos --- linux-user/aarch64/termbits.h| 2 ++ linu

[Qemu-devel] [PATCH] linux-user: Implement setsockopt SOL_SOCKET/SO_LINGER

2018-02-05 Thread Andreas Schwab
Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ff89016adc..82848fd97d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -

Re: [Qemu-devel] [PATCH v4 10/22] RISC-V Linux User Emulation

2018-02-05 Thread Andreas Schwab
ve_pages 239 > +#define TARGET_NR_rt_tgsigqueueinfo 240 > +#define TARGET_NR_perf_event_open 241 > +#define TARGET_NR_accept4 242 > +#define TARGET_NR_recvmmsg 243 > +#define TARGET_NR_arch_specific_syscall 244 > +#define TARGET_NR_wait4 260 > +#define TARGET_NR_prlimit64 261 > +#define TARGET_NR_fanotify_init 262 > +#define TARGET_NR_fanotify_mark 263 > +#define TARGET_NR_name_to_handle_at 264 > +#define TARGET_NR_open_by_handle_at 265 > +#define TARGET_NR_clock_adjtime 266 > +#define TARGET_NR_syncfs 267 > +#define TARGET_NR_setns 268 > +#define TARGET_NR_sendmmsg 269 > +#define TARGET_NR_process_vm_readv 270 > +#define TARGET_NR_process_vm_writev 271 > +#define TARGET_NR_kcmp 272 > +#define TARGET_NR_finit_module 273 > + > +#define TARGET_NR_syscalls (__NR_finit_module + 1) This is very much out of date, missing some important entries. Also, TARGET_NR_syscalls needs to refer to TARGET_NR_*. 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: Implement copy_file_range

2018-02-05 Thread Andreas Schwab
No attempt is made to emulate it on the host. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 07fb8de921..ff89016adc

[Qemu-devel] [PATCH v2] linux-user: Implement copy_file_range

2018-02-06 Thread Andreas Schwab
No attempt is made to emulate it on the host. Signed-off-by: Andreas Schwab <sch...@suse.de> --- v2: fix spacing --- linux-user/syscall.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index bed1

Re: [Qemu-devel] [PATCH v2] linux-user: Implement copy_file_range

2018-02-15 Thread Andreas Schwab
On Feb 15 2018, Laurent Vivier <laur...@vivier.eu> wrote: > Le 06/02/2018 à 11:31, Andreas Schwab a écrit : >> No attempt is made to emulate it on the host. > > I don't understand what you mean here... If your host doesn't have it, neither will the emulation. Andreas. --

[Qemu-devel] [PATCH] linux-user: don't short-circuit read with zero length

2018-09-11 Thread Andreas Schwab
A zero-length read still needs to do the usual checks, thus it may return errors like EBADF. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

Re: [Qemu-devel] [PULL v4 0/7] riscv-pull queue

2018-07-10 Thread Andreas Schwab
On Jul 09 2018, Alistair Francis wrote: > On Mon, Jul 9, 2018 at 3:00 AM, Andreas Schwab wrote: >> What is the state of the sifive_u emulation? When I tried to boot a bbl >> with an included kernel I get these errors: >> >> qemu-system-riscv64: plic: invalid regis

Re: [Qemu-devel] [PULL v4 0/7] riscv-pull queue

2018-07-09 Thread Andreas Schwab
qemu-system-riscv64: plic: invalid register write: 20b0 qemu-system-riscv64: plic: invalid register write: 20b4 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: implement renameat2

2018-01-22 Thread Andreas Schwab
This is needed for new architectures like RISC-V which do not provide any other rename-like syscall. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 33 + 1 file changed, 33 insertions(+) diff --git a/linux-user/syscall.c b/linu

[Qemu-devel] [PATCH] linux-user: Implement ioctl cmd TIOCGPTPEER

2018-01-24 Thread Andreas Schwab
With glibc 2.27 the openpty function will prefer the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/aarch64/termbits.h| 2 ++ linux-user/alpha/termbits.h | 1 + linux-user/arm/termbits.h| 1 + linux-user/cris/termbits.h | 1 + linu

Re: [Qemu-devel] [PATCH 5/7] block: convert bdrv_invalidate_cache callback to coroutine_fn

2018-03-15 Thread Andreas Schwab
: 'iscsi_invalidate_cache' undeclared here (not in a function); did you mean 'iscsi_co_invalidate_cache'? .bdrv_invalidate_cache = iscsi_invalidate_cache, ^~ iscsi_co_invalidate_cache Andreas. -- Andreas

Re: [Qemu-devel] qemu:handle_cpu_signal received signal outside vCPU context

2018-03-20 Thread Andreas Schwab
use.org/package/show/openSUSE:Factory:RISCV/gedit> with osc and use osc build. 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] qemu:handle_cpu_signal received signal outside vCPU context

2018-03-19 Thread Andreas Schwab
context @ pc=0x6003d7d5 qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x60106a16 This is qemu as of today with the patches from git://github.com/riscv/riscv-qemu / riscv-all on top. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970

Re: [Qemu-devel] [PATCH v6 00/23] RISC-V QEMU Port Submission

2018-02-26 Thread Andreas Schwab
This is being used to build openSUSE Factory for riscv64 with linux-user emulation: https://build.opensuse.org/project/show/openSUSE:Factory:RISCV Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "An

[Qemu-devel] [Bug 1793539] [NEW] qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6003ddc5

2018-09-20 Thread Andreas Schwab
Public bug reported: During the build of gedit for RISC-V this error occurs: $ qemu-riscv64 -E LD_LIBRARY_PATH=gedit/.libs ./gedit/.libs/gedit qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6003ddc5 qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x69e4

  1   2   >