Re: [PATCH v5 1/6] meson: Fixes the ninjatool issue that E$$: are generated in Makefile.ninja

2020-08-26 Thread Yonggang Luo
included. > > Thanks, > After these patches merged, I'll do that > > Paolo > > On Wed, Aug 26, 2020 at 5:48 PM 罗勇刚(Yonggang Luo) > wrote: > > > > How about enabling github actions to enable MSYS2 builds in CI. > > So we won't break msys2 silently. > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH v5 1/6] meson: Fixes the ninjatool issue that E$$: are generated in Makefile.ninja

2020-08-26 Thread Yonggang Luo
How about enabling github actions to enable MSYS2 builds in CI. So we won't break msys2 silently.

Re: [PATCH v5 1/6] meson: Fixes the ninjatool issue that E$$: are generated in Makefile.ninja

2020-08-26 Thread Yonggang Luo
On Wed, Aug 26, 2020 at 11:41 PM Paolo Bonzini wrote: > On Wed, Aug 26, 2020 at 5:39 PM 罗勇刚(Yonggang Luo) > wrote: > >> Ok, that's useful. But can you just send the whole file (it's huge but > >> you can gzip it or something similar)? > >> > >&g

Re: [PATCH v5 1/6] meson: Fixes the ninjatool issue that E$$: are generated in Makefile.ninja

2020-08-26 Thread Yonggang Luo
On Wed, Aug 26, 2020 at 11:37 PM Paolo Bonzini wrote: > On Wed, Aug 26, 2020 at 5:31 PM 罗勇刚(Yonggang Luo) > wrote: > > > > I can tell you build.ninja can contains $: symbol, that's the escape for > Ninja, > > when ninjatool parse it, it will convert $: -> :,

Re: [PATCH v5 4/6] configure: Fix include and linkage issue on msys2

2020-08-26 Thread Yonggang Luo
On Wed, Aug 26, 2020 at 11:36 PM Paolo Bonzini wrote: > On Wed, Aug 26, 2020 at 5:33 PM 罗勇刚(Yonggang Luo) > wrote: > > > > > > On Wed, Aug 26, 2020 at 11:24 PM Paolo Bonzini > wrote: > >> I'm a bit wary of this patch, the effects are quite wide-rang

Re: [PATCH v5 4/6] configure: Fix include and linkage issue on msys2

2020-08-26 Thread Yonggang Luo
anged, so I don't think there is side effect of this patch. > > However, I'm testing and queuing patches 1 to 3. > > Paolo > > On Wed, Aug 26, 2020 at 5:13 PM wrote: > > > > From: Yonggang Luo > > > > On msys2, the -I/e/path/to/qemu -L/e/path/t

Re: [PATCH v5 1/6] meson: Fixes the ninjatool issue that E$$: are generated in Makefile.ninja

2020-08-26 Thread Yonggang Luo
.rc'$ with$ a$ custom$ command ``` On Wed, Aug 26, 2020 at 11:28 PM Paolo Bonzini wrote: > On Wed, Aug 26, 2020 at 5:12 PM wrote: > > > > From: Yonggang Luo > > > > SIMPLE_PATH_RE should match the full path token. > > Or the $ and : contained in path would

Re: [PATCH v5 6/6] meson: Convert undefsym.sh to undefsym.py

2020-08-26 Thread Yonggang Luo
-g "$@" | awk '$2=="U"{print "-Wl,-u," $1}' | sort -u) > > looks for lines that *are* U in the modules. So using filter_lines_set > is correct for static libraries but wrong for modules. > > Paolo > > On Wed, Aug 26, 2020 at 5:13

Re: [PATCH] configure: Require pixman for vhost-user-gpu.

2020-08-25 Thread Yonggang Luo
On Tue, Aug 25, 2020 at 11:33 PM Thomas Huth wrote: > On 22/08/2020 22.29, Philippe Mathieu-Daudé wrote: > > Hi Rafael, > > Would these improvement can be implemented in python? -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH 4/5] meson: !/bin/sh are msys2 friendly.

2020-08-25 Thread Yonggang Luo
OK, maybe convert this to python script would be a better option. Then skip this first On Tue, Aug 25, 2020 at 9:59 PM Eric Blake wrote: > On 8/25/20 4:11 AM, 罗勇刚(Yonggang Luo) wrote: > > Hi, works, msys2 sh compiled and run > > Top-formatting makes it harder to read, compared

Re: [PATCH] meson: Mingw64 gcc doesn't recognize system include_type for sdl2

2020-08-25 Thread Yonggang Luo
dré Lureau < marcandre.lur...@gmail.com> wrote: > Hi > > On Tue, Aug 25, 2020 at 4:17 AM wrote: > >> From: Yonggang Luo >> >> --- >> meson.build | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/meson.build b/m

Re: [PATCH 4/5] meson: !/bin/sh are msys2 friendly.

2020-08-25 Thread Yonggang Luo
Hi, works, msys2 sh compiled and run On Tue, Aug 25, 2020 at 4:59 PM Daniel P. Berrangé wrote: > On Tue, Aug 25, 2020 at 04:34:59PM +0800, luoyongg...@gmail.com wrote: > > From: Yonggang Luo > > > > --- > > scripts/undefsym.sh | 2 +- > > 1 file ch

Re: meson: problems building under msys2/mingw-w64 native

2020-08-25 Thread Yonggang Luo
it > and then I will include it. > > Paolo > > Il mar 25 ago 2020, 10:24 罗勇刚(Yonggang Luo) ha > scritto: > >> Hi Paolo Bonzini, >> I've already sent a series of fixes for msys, do you have a look at that? >> >> >> On Tue, Aug 25, 2020 at 3:5

Re: meson: problems building under msys2/mingw-w64 native

2020-08-25 Thread Yonggang Luo
: >> >> diff --git a/ui/meson.build b/ui/meson.build >> index 81fd393432..cc71f51f37 100644 >> --- a/ui/meson.build >> +++ b/ui/meson.build >> @@ -42,7 +42,7 @@ if config_host.has_key('CONFIG_CURSES') >>ui_modules += {'curses' : curses_ss} >> endif >> >> -if config_host.has_key('CONFIG_GTK') and >> config_host.has_key('CONFIG_VTE') >> +if config_host.has_key('CONFIG_GTK') >>softmmu_ss.add(when: 'CONFIG_WIN32', if_true: >> files('win32-kbd-hook.c')) >> >>gtk_ss = ss.source_set() >> >> >> ATB, >> >> Mark. >> >> -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: msys2/mingw meson building fixes

2020-08-24 Thread Yonggang Luo
x64/capstone/capstone.lib AR /e/CI-Cor-Ready/xemu/qemu.org-x64/slirp/libslirp.a make[1]: 离开目录“/e/CI-Cor-Ready/xemu/qemu.org/slirp” Makefile.ninja:27: *** 多个目标匹配。 停止。 ``` On Tue, Aug 25, 2020 at 4:53 AM 罗勇刚(Yonggang Luo) wrote: > > > -- Forwarded message - > Fro

Fwd: msys2/mingw meson building fixes

2020-08-24 Thread Yonggang Luo
-- Forwarded message - From: 罗勇刚(Yonggang Luo) Date: Tue, Aug 25, 2020 at 4:50 AM Subject: msys2/mingw meson building fixes To: qemu-level I've create a pull request for fixes python ninja detection and usage on msys2/mingw at https://github.com/mesonbuild/meson/pull

msys2/mingw meson building fixes

2020-08-24 Thread Yonggang Luo
I've create a pull request for fixes python ninja detection and usage on msys2/mingw at https://github.com/mesonbuild/meson/pull/7637 -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[Bug 1892544] Re: meson qemu 5.2 can not built with msys2

2020-08-21 Thread Yonggang Luo
error output ``` $ ../qemu.org/configure \ > --python=python3 \ > --cross-prefix=x86_64-w64-mingw32- --enable-gtk --enable-sdl \ > --enable-capstone=git \ > --enable-stack-protector \ > --enable-gnutls \ > --enable-nettle \ > --enable-vnc \ > --enable-vnc-sasl \ > --enable-vnc-jpe

[Bug 1892544] [NEW] meson qemu 5.2 can not built with msys2

2020-08-21 Thread Yonggang Luo
Public bug reported: pacman -S base-devel mingw-w64-x86_64-toolchain git pacman -S mingw-w64-x86_64-python mingw-w64-x86_64-python-setuptools pacman -S mingw-w64-x86_64-spice-protocol cd /mingw64/bin cp x86_64-w64-mingw32-gcc-ar.exe x86_64-w64-mingw32-ar.exe cp x86_64-w64-mingw32-gcc-ranlib.exe x

[Bug 1892541] [NEW] qemu 5.1 on windows 10 with whpx can not install Windows 7 guest

2020-08-21 Thread Yonggang Luo
Public bug reported: Command install and start win7 qemu-system-x86_64 -smbios type=1,uuid=e77aacd6-0acb-4a5c-9a83-a80d029b36f1 -smp 2,sockets=1,cores=2,maxcpus=2 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000 -m 8192 ^ -readconfig pve-q35-4.0.cfg ^ -device vmgenid,guid=6d4865f5-353e-

Trying to install win7 on qemu 5.1 with whpx failed, any suggestion?

2020-08-20 Thread Yonggang Luo
此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [DRAFT PATCH 000/143] Meson integration for 5.2

2020-08-07 Thread Yonggang Luo
Any IDE works with meson properly? Does meson have vs code plugin? On Fri, Aug 7, 2020 at 4:11 PM Paolo Bonzini wrote: > On 07/08/20 10:01, 罗勇刚(Yonggang Luo) wrote: > > Could meson can generate CMake file or directly using CMake? > > cause Cmake have better IDE support. > >

Re: [DRAFT PATCH 000/143] Meson integration for 5.2

2020-08-07 Thread Yonggang Luo
, 80 insertions(+), 168 deletions(-) > > > > 3) the idea behind using Makefile generators is to have stable > > code written in a high-level language instead of Makefile magic > > that tends to grow by accretion. So even though ninjatool is > > large at 1000 lines of Python, it can already be considered mature > > or even "done". It had only ~15 lines changed since the last post, > > and whenever debugging meson.build issues looking at build.ninja has > > always (literally!) been enough. > > > > Available on git://github.com/bonzini/qemu branch meson-poc-next. > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH 11/11] dockerfiles/debian-win64-cross: Download WHPX MinGW headers

2020-08-05 Thread Yonggang Luo
to lower case, but the commit doing the rename gives > zero information about why it did that. > > The microsoft docs appear to show that camel case is required: > > > https://docs.microsoft.com/en-us/virtualization/api/hypervisor-platform/hypervisor-platform > > so I think mingw just needs fixing to revert that broken commit > the changed to lowercase. > > Regards, > Daniel > -- > |: https://berrange.com -o- > https://www.flickr.com/photos/dberrange :| > |: https://libvirt.org -o- > https://fstop138.berrange.com :| > |: https://entangle-photo.org-o- > https://www.instagram.com/dberrange :| > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH v2 05/12] util/oslib-win32: add qemu_get_host_physmem implementation

2020-07-22 Thread Yonggang Luo
{ > +if (mem > SIZE_MAX) { > +return SIZE_MAX; > +} else { > +return mem; > + } > +} else { > +return 0; > +} > } > -- > 2.20.1 > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [REPORT] [GSoC - TCG Continuous Benchmarking] [#2] Dissecting QEMU Into Three Main Parts

2020-06-29 Thread Yonggang Luo
U-Into-Three-Main-Parts/ > > Previous reports: > Report 1 - Measuring Basic Performance Metrics of QEMU: > https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg06692.html > > Best regards, > Ahmed Karaman > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [Bug 1877015] [NEW] virtio only support packed ring size power of 2 between 256 and 1024

2020-05-05 Thread Yonggang Luo
gt; > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/1877015/+subscriptions > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH] ppc: Use hard-float in ppc fp_hlper as early as possible. This would increase the performance better than enable hard-float it in soft-float.c; Just using fadd fsub fmul fdiv as a simple b

2020-05-04 Thread Yonggang Luo
endif return 0; } ``` On Tue, May 5, 2020 at 3:30 AM wrote: > From: Yonggang Luo > > Just post as an idea to improve PPC fp performance. > With this idea, we have no need to adjust the helper orders. > > Signed-off-by: Yonggang Luo > --- > target/ppc/fpu_helper.c |

Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM)

2020-05-03 Thread Yonggang Luo
t > needs a very long time to complete. > > Huacai > > On Sun, May 3, 2020 at 6:42 PM 罗勇刚(Yonggang Luo) > wrote: > > > > The english version of the reference document is hard to head. > > I suggest first convert the chinese version into markdown or alternative &

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-03 Thread Yonggang Luo
On Mon, May 4, 2020 at 7:40 AM BALATON Zoltan wrote: > Hello, > > On Mon, 4 May 2020, 罗勇刚(Yonggang Luo) wrote: > > Hello Richard, Can you have a look at the following patch, and was that > are > > the right direction? > > Formatting of the patch is broken by yo

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-03 Thread Yonggang Luo
Hello Richard, Can you have a look at the following patch, and was that are the right direction? >From b4d6ca1d6376fab1f1be06eb472e10b908887c2b Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 2 May 2020 05:59:25 +0800 Subject: [PATCH] [ppc fp] Step 1. Rearrange the fp helpers to elimin

Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM)

2020-05-03 Thread Yonggang Luo
> target/mips/kvm.c| 212 + > target/mips/machine.c | 6 +- > target/mips/mips-defs.h | 7 +- > target/mips/translate.c | 2 + > target/mips/translate_init.inc.c | 86 > 18 files changed, 1300 insertions(+), 9 deletions(-) > create mode 100644 hw/mips/common.c > create mode 100644 hw/mips/mips_loongson3.c > -- > 2.7.0 > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-01 Thread Yonggang Luo
>From b4d6ca1d6376fab1f1be06eb472e10b908887c2b Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 2 May 2020 05:59:25 +0800 Subject: [PATCH] [ppc fp] Step 1. Rearrange the fp helpers to eliminate helper_reset_fpstatus(). I've mentioned this before, that it's possible to lea

An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-01 Thread Yonggang Luo
tion. And fp_status can not represent all the Invalid Operation Exception flags. What I need to do to represent all the Invalid Operation Exception -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Sat, May 2, 2020 at 12:51 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 9:29 AM, 罗勇刚(Yonggang Luo) wrote: > > On Fri, May 1, 2020 at 10:18 PM Richard Henderson < > richard.hender...@linaro.org > > Step 1 is to rearrange

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 10:18 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 6:10 AM, Alex Bennée wrote: > > > > 罗勇刚(Yonggang Luo) writes: > > > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan > wrote: > >> &

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 10:18 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 6:10 AM, Alex Bennée wrote: > > > > 罗勇刚(Yonggang Luo) writes: > > > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan > wrote: > >> &

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: > On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: > > That's what I suggested, > > We preserve a float computing cache > > typedef struct FpRecord { > > uint8_t op; > > float32 A; > > float32 B;

Re: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
a good idea. > > > -Messaggio originale----- > > Da: BALATON Zoltan > > Inviato: giovedì 30 aprile 2020 17:36 > > A: 罗勇刚(Yonggang Luo) > > Cc: Richard Henderson ; Dino Papararo < > skizzat...@msn.com>; qemu-devel@nongnu.org; Programmingkid < > progr

Re: R: R: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
< richard.hender...@linaro.org> wrote: > On 4/29/20 5:20 PM, 罗勇刚(Yonggang Luo) wrote: > > Question, in hard-float, if we don't want to read the fp register. > > for example: If we wanna compute c = a + b in fp32 > > if c = a + b In hard float > > and if b1 = c - a i

Re: R: R: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
On Thu, Apr 30, 2020 at 10:18 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 4/29/20 5:20 PM, 罗勇刚(Yonggang Luo) wrote: > > Question, in hard-float, if we don't want to read the fp register. > > for example: If we wanna compute c = a + b in fp32 >

Re: R: R: About hardfloat in ppc

2020-04-29 Thread Yonggang Luo
ats 'should' be set as first choice and only if > > instruction requires precision/error check process it in softfloats. > > Sure but someone will have to do the work to support that. > > -- > Alex Bennée > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: R: About hardfloat in ppc

2020-04-29 Thread Yonggang Luo
an use the > hardfloat path when we know we are using normal numbers. > > > > > A little of documentation here: > http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/PPCNumerics/PPCNumerics-154.html > > > > Regards, > > Dino Papararo > > > > ---

Re: R: About hardfloat in ppc

2020-04-29 Thread Yonggang Luo
when we know we are using normal numbers. > > > > > A little of documentation here: > http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/PPCNumerics/PPCNumerics-154.html > > > > Regards, > > Dino Papararo > > > > -Messaggio

Re: About hardfloat in ppc

2020-04-28 Thread Yonggang Luo
On Tue, Apr 28, 2020 at 4:36 PM Alex Bennée wrote: > > 罗勇刚(Yonggang Luo) writes: > > > I am confusing why only inexact are set then we can use hard-float. > > The inexact behaviour of the host hardware may be different from the > guest architecture we are trying

Re: About hardfloat in ppc

2020-04-27 Thread Yonggang Luo
t; > > On Mon, 27 Apr 2020, Alex Bennée wrote: > >> 罗勇刚(Yonggang Luo) writes: > >>> Because ppc fpu-helper are always clearing float_flag_inexact, > >>> So is that possible to optimize the performance when > float_flag_inexact > >>> are clea

About hardfloat in ppc

2020-04-26 Thread Yonggang Luo
Because ppc fpu-helper are always clearing float_flag_inexact, So is that possible to optimize the performance when float_flag_inexact are cleared? -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

I've seen you are trying to add hardfloat support in qemu? Does it have any progress now?

2020-04-26 Thread Yonggang Luo
I am interesting doing some help in this area. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

The -icount option document are confusing

2020-04-25 Thread Yonggang Luo
cpu goes to sleep mode and will not advance if no timer is enabled. This behavior give deterministic execution times from the guest point of view. I wanna to know what's the meaning when sleep=on, and what's the meaning when sleep=off -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
On Thu, Apr 23, 2020 at 11:03 PM Jag Raman wrote: > > > > On Apr 23, 2020, at 9:54 AM, 罗勇刚(Yonggang Luo) > wrote: > > > > Does multi-process support on Windows? > > I found it use mmap and unix socket for inter-process communication, > that may not support un

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
On Thu, Apr 23, 2020 at 11:03 PM Jag Raman wrote: > > > > On Apr 23, 2020, at 9:54 AM, 罗勇刚(Yonggang Luo) > wrote: > > > > Does multi-process support on Windows? > > I found it use mmap and unix socket for inter-process communication, > that may not support un

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
; + '-device', > 'scsi-hd,id=drive1,drive=drive_image1,bus=lsi1.0,' \ > + 'scsi-id=0', > \ > + '-device', 'lsi53c895a,id=lsi2', > \ > + '-drive', > 'id=drive_image2,file=/build/ol7-nvme-test-2.qcow2', \ > + '-device', > 'scsi-hd,id=drive2,drive=drive_image2,bus=lsi2.0,' \ > + 'scsi-id=0' > \ > + ] > + > +proxy_cmd = [ PROC_QEMU, > \ > + '-name', 'OL7.4', > \ > + '-machine', 'q35,accel=kvm', > \ > + '-smp', 'sockets=1,cores=1,threads=1', > \ > + '-m', '2048', > \ > + '-object', 'memory-backend-memfd,id=sysmem-file,size=2G', > \ > + '-numa', 'node,memdev=sysmem-file', > \ > + '-device', 'virtio-scsi-pci,id=virtio_scsi_pci0', > \ > + '-drive', 'id=drive_image1,if=none,format=qcow2,' > \ > +'file=/home/ol7-hdd-1.qcow2', > \ > + '-device', 'scsi-hd,id=image1,drive=drive_image1,' > \ > + 'bus=virtio_scsi_pci0.0', > \ > + '-boot', 'd', > \ > + '-vnc', ':0', > \ > + '-device', > 'pci-proxy-dev,id=lsi1,socket='+str(proxy.fileno()), \ > + '-device', > 'pci-proxy-dev,id=lsi2,socket='+str(proxy.fileno()) \ > +] > + > + > +pid = os.fork(); > + > +if pid: > +# In Proxy > +print('Launching QEMU with Proxy object'); > +process = subprocess.Popen(proxy_cmd, pass_fds=[proxy.fileno()]) > +else: > +# In remote > +print('Launching Remote process'); > +process = subprocess.Popen(remote_cmd, pass_fds=[remote.fileno()]) > -- > 2.25.GIT > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [RFC PATCH v2] target/ppc: Enable hardfloat for PPC

2020-04-10 Thread Yonggang Luo
} > > -set_float_exception_flags(0, &tstat); > +set_float_exception_flags(env->default_fp_excpt_flags, &tstat); > t.f128 = float128_sqrt(xb->f128, &tstat); > env->fp_status.float_exception_flags |= tstat.float_exception_flags; > > @@ -3449,7 +3449,7 @@ void helper_xssubqp(CPUPPCState *env, uint32_t > opcode, > tstat.float_rounding_mode = float_round_to_odd; > } > > -set_float_exception_flags(0, &tstat); > +set_float_exception_flags(env->default_fp_excpt_flags, &tstat); > t.f128 = float128_sub(xa->f128, xb->f128, &tstat); > env->fp_status.float_exception_flags |= tstat.float_exception_flags; > > diff --git a/target/ppc/translate_init.inc.c > b/target/ppc/translate_init.inc.c > index 53995f62ea..ab1a6db4f1 100644 > --- a/target/ppc/translate_init.inc.c > +++ b/target/ppc/translate_init.inc.c > @@ -10736,6 +10736,8 @@ static void ppc_cpu_reset(CPUState *s) > /* tininess for underflow is detected before rounding */ > set_float_detect_tininess(float_tininess_before_rounding, >&env->fp_status); > +/* hardfloat needs inexact flag already set */ > +env->default_fp_excpt_flags = (cpu->hardfloat ? float_flag_inexact : > 0); > > for (i = 0; i < ARRAY_SIZE(env->spr_cb); i++) { > ppc_spr_t *spr = &env->spr_cb[i]; > @@ -10868,6 +10870,7 @@ static Property ppc_cpu_properties[] = { > false), > DEFINE_PROP_BOOL("pre-3.0-migration", PowerPCCPU, pre_3_0_migration, > false), > +DEFINE_PROP_BOOL("hardfloat", PowerPCCPU, hardfloat, true), > DEFINE_PROP_END_OF_LIST(), > }; > > -- > 2.21.1 > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

POWERPC_EXCP_PROGRAM POWERPC_EXCP_INVAL in PowerPC simulation.

2020-03-21 Thread Yonggang Luo
060 (21) -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

I am trying to fixes a issue with QEMU with VxWorks.

2020-03-08 Thread Yonggang Luo
00 20 blr The QEMU are getting stuck and can not running the following instructions, What I need to do to inspect which instruction are getting stuck and how to fix it? Any means to debugging that. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[Bug 1866577] [NEW] powerpc-none-eabi-gdb.exe GDB 9.1 with QEMU 4.2 gdb-stub comes with Reply contains invalid hex digit 79

2020-03-08 Thread Yonggang Luo
Public bug reported: I am using powerpc-none-eabi-gdb with qemu 4.2, but it comes with the following error: undefinedC:\CI-Tools\msys64\powerpc-none-eabi\usr\local\bin\powerpc- none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory. ```Not implemented stop reason (a

[Bug 1622582] Re: Can't install Windows 7 with q35 (SATA)

2020-01-13 Thread Yonggang Luo
I also face this problem, any idea to resolve. I am using qemeu 4.2 + whpx support but failed to install ./qemu-system-x86_64 -m 4096 \ -vga vmware \ -machine q35 \ -accel whpx \ -usb -device usb-kbd \ -device usb-mouse -device usb-audio -boot c \ -netdev tap,id=mynet0,ifname=tap0,script=no,downsc

Issue: whpx mode can not install windows 7 os.

2020-01-13 Thread Yonggang Luo
```. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Does ppc target support for MTTCG are stable?

2020-01-09 Thread Yonggang Luo
I enabled it and working, but I don't know if there any other issue are still not resolved.. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[Bug 1854738] [NEW] ppc doesn't support for mttcg but ppc64 supported

2019-12-02 Thread Yonggang Luo
Public bug reported: Currently ppc and ppc64abi32 doesn't suppport for mttcg, I am looking for support ``` ppc) gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" ;; ppc64) TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc mttcg=yes gdb_xml_files="power64

<    3   4   5   6   7   8