Re: [Qemu-devel] [PATCH] target/i386: Fix BLSR and BLSI

2018-06-06 Thread Ricardo Ribalda Delgado
nsn group. > > Reported-by: Ricardo Ribalda Delgado > Signed-off-by: Richard Henderson > --- > target/i386/translate.c | 25 - > 1 file changed, 8 insertions(+), 17 deletions(-) > > diff --git a/target/i386/translate.c b/target/i386/translate.c > i

[Qemu-devel] Different feature status

2017-07-17 Thread Ricardo Ribalda Delgado
Hi I am missing the following functionality to fully emulate an AMD bulldozer v4: -mno-avx -mno-avx2 -mno-f16c -mno-fma -mno-fma4 -mno-prfchw -mno-rdrnd -mno-xop I was wondering if there is any documentation with the features that are planned to be implemented, and who is implementing them. (Goo

Re: [Qemu-devel] [PATCH v2] target/i386: Fix BLSR and BLSI

2017-07-13 Thread Ricardo Ribalda Delgado
out, "blsfill %ld (0x%lx)\n",ret, ret); ret = test_blsic(op1); fprintf(stdout, "blsic %ld (0x%lx)\n",ret, ret); ret = test_t1mskc(op1); fprintf(stdout, "t1mskc %ld (0x%lx)\n",ret, ret); ret = test_tzmsk(op1); fprintf(stdout, "tzmsk %ld (0x%lx)\n",ret, ret);

Re: [Qemu-devel] [PATCH v2] target/i386: Fix BLSR and BLSI

2017-07-13 Thread Ricardo Ribalda Delgado
uot;blmsk %ld (0x%lx)\n",ret, ret); ret = test_andn(op1,op2); fprintf(stdout, "andn %ld (0x%lx)\n",ret, ret); ret = test_tzcnt(op1); fprintf(stdout, "tzcnt %ld (0x%lx)\n",ret, ret); ret = test_bextr(op1, op2, op3); fprintf(stdout, "bextr %ld (0x%lx)\n",ret, ret);

[Qemu-devel] [PATCH] target/i386: Fix ANDN (bmi)

2017-07-13 Thread Ricardo Ribalda Delgado
retq 93a: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) The test showed than -mbmi version behaved differently than the -march native version. Signed-off-by: Ricardo Ribalda Delgado --- target/i386/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/

Re: [Qemu-devel] [PATCH v2] target/i386: Fix BLSR and BLSI

2017-07-13 Thread Ricardo Ribalda Delgado
time, unify the setup of eflags for the insn group. > > Reported-by: Ricardo Ribalda Delgado > Signed-off-by: Richard Henderson > --- > target/i386/translate.c | 26 +- > 1 file changed, 9 insertions(+), 17 deletions(-) > > diff --git a/ta

Re: [Qemu-devel] [PATCH] target/i386: Fix BLSR and BLSI

2017-07-12 Thread Ricardo Ribalda Delgado
nown_op; } +gen_op_update2_cc(); +set_cc_op(s, CC_OP_BMILGB + ot); break; default: On Wed, Jul 12, 2017 at 9:12 PM, Richard Henderson wrote: > On 07/12/2017 08:58 AM, Ricardo Ribalda Delgado wrote: >> >> Hi Rich

Re: [Qemu-devel] [PATCH] target/i386: Fix BLSR and BLSI

2017-07-12 Thread Ricardo Ribalda Delgado
eflags for the insn group. > > Reported-by: Ricardo Ribalda Delgado > Signed-off-by: Richard Henderson > --- > target/i386/translate.c | 25 - > 1 file changed, 8 insertions(+), 17 deletions(-) > > diff --git a/target/i386/translate.c b/target/i3

Re: [Qemu-devel] [PATCH 0/2] target/i386: Implement all TBM instructions

2017-07-12 Thread Ricardo Ribalda Delgado
Hi Richard Thanks for your patch! I have applied it to my tree, but i still get SIGSEGV. I think that I might have found the problem. It seems to be related to the bmi instruction blsr, which seems to be not properly implemented. On this example: #include int test_blsr(int val){ return (val &

Re: [Qemu-devel] qemu-x86_64: Error processing bextr

2017-07-11 Thread Ricardo Ribalda Delgado
A) + goto unknown_op; +b = 0x138; +s->vex_v = (~vex3 >> 3) & 0xf; +s->vex_l = (vex3 >> 2) & 1; +prefixes |= pp_prefix[vex3 & 3] | PREFIX_XOP; +} +fprintf(stderr, "XOP end!\n"); +break; } /* Post-pr

[Qemu-devel] qemu-x86_64: Error processing bextr

2017-07-10 Thread Ricardo Ribalda Delgado
Hi I have the following assembly snipset (from get_common_indeces in glibc compiled with gcc 6.3 -march=bdver4) 0x0040008179b3 <+19>: 89 15 8b c3 20 00 mov %edx,0x20c38b(%rip)# 0x4000a23d44 <_rtld_local_ro+132> 0x0040008179b9 <+25>: 89 1d 7d c3 20 00 mov %ebx,0x20c37d(%rip

[Qemu-devel] Re: [PATCH] Elo touchpad 10 bytes emulator v2

2010-03-30 Thread Ricardo Ribalda Delgado
Hello Juan New patch is on the mail. > It misses a SOB line. Sorry, I don't understand what you mean here, do you mean the sing off? > You can remove the "../" from those, Makefile sets correct include paths > for this to work. Done > >> +    /*Move event*/ >> +    if (is_down&&buttons_st

[Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator v3

2010-03-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado New char device emulating an Elo serial touchpad. v2: -Emulate id packages (linux recognizes the hw) -Limit output to 96-4000 (thanks to Dmitry Zhurikhin) v3: -Output buffer (thanks to Juan Quintela) -Code Style --- Makefile.objs |2 +- hw/elo.c

[Qemu-devel] Re: [PATCH] Elo touchpad 10 bytes emulator v2

2010-03-30 Thread Ricardo Ribalda Delgado
Hello Juan Thanks for your comments. About the indentation error... Do you have some kind of auto indent script(like the kernel code has). It is making me crazy trying to collaborate with a lot of projects an all of them with different styles. > >> +#include >> +#include "../qemu-common.h" >>

Re: [Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator

2010-03-29 Thread Ricardo Ribalda Delgado
Hello Paul Hmmm, you are right, it should be part of the calibration (userland). As Dmtry says, the output from the chip should be from 96-4000. I have fixed the max values to that. The previous code was done to emulate an old privative app that uses an elo touchscreen. I managed to reverse engin

[Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator v2

2010-03-29 Thread Ricardo Ribalda Delgado
New char device emulating an Elo serial touchpad. -Emulate id and touch packets -Absolute Output limited to 96-4000 --- Makefile.objs |2 +- hw/elo.c| 153 +++ hw/elo.h|2 + hw/serial.c |2 +- qemu-char.c |

[Qemu-devel] [PATCH 01/10] Elo touchpad 10 bytes emulator

2010-03-29 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado New char device emulating an Elo serial touchpad. TODO: The output of the touchpad should be in the range of the resolution. But I don't know a clean way to get the screen resolution. Any help will be very wellcomed --- Please, be nice it is my first patch t

[Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator

2010-03-29 Thread Ricardo Ribalda Delgado
New char device emulating an Elo serial touchpad. TODO: The output of the touchpad should be in the range of the resolution. But I don't know a clean way to get the screen resolution. Any help will be very wellcomed --- Please. Ignore the old 01/10 Makefile.objs |2 +- hw/elo.c|