Re: [Qemu-devel] [PATCH 6/6] linux-user: Fix trampoline code for CRIS

2014-02-03 Thread Riku Voipio
On Sun, Feb 02, 2014 at 03:04:52AM +, edgar.igles...@gmail.com wrote: > From: Stefan Weil > > __put_user can write bytes, words (2 bytes) or longwords (4 bytes). > Here obviously words should have been written, but bytes were written, > so values like 0x9c5f were truncated to 0x5f. > > Fix t

[Qemu-devel] [PATCH 6/6] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread edgar . iglesias
From: Stefan Weil __put_user can write bytes, words (2 bytes) or longwords (4 bytes). Here obviously words should have been written, but bytes were written, so values like 0x9c5f were truncated to 0x5f. Fix this by changing retcode from uint8_t to to uint16_t in target_signal_frame and also in t