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
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.
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
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
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
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
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
. 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
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
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
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
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
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
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
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
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.
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.
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.
;
+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.
);
}
-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
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.
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
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
@@
#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
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
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.
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
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
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
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
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
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.
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
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
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
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
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:
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
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.
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
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
);
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.
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
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
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
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
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.
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
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
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
/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.
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
. 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
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.
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
;> +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
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
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
_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
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
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
) 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."
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
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
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
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
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."
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
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 +++-
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
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."
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."
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 +++-
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
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 +++-
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
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
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
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."
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
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
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 +
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
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
@@ -
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."
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
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
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.
--
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
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
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."
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
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
: '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
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."
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
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
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
A zero-length read still needs to do the usual checks, thus it may return
errors like EBADF. This makes the read syscall emulation consistent with
the pread64 syscall emulation.
Signed-off-by: Andreas Schwab
---
linux-user/syscall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
Set msg_flags in the returned struct msghdr.
Signed-off-by: Andreas Schwab
---
linux-user/syscall.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 90bfda3563..b6b566a6fa 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
1 - 100 of 156 matches
Mail list logo