v15 & new recompiler update

Discussion of development and patch submission.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

I am also getting a segmentation fault on Linux x86_64 builds. I can't get a useful backtrace, but it happens on different configurations when loading Windows 3.1 and Windows 98 so far. These were preinstalled from earlier PCem revisions. If you have any suggestions on how to get anything useful for debugging let me know. I doesn't allow me to deselect dynamic recompiler either.
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: v15 & new recompiler update

Post by EluanCM »

To make the dynarec optional, you can remove CPU_REQUIRES_DYNAREC from your CPU in cpu_tables.c. Not usable but you will be able to tell if the issue is with the dynarec.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

Either that or select a Winchip CPU. PCem doesn't allow non-dynarec emulation of Pentium, 6x86 or K6 CPUs as trying to emulate the timing in the interpreter would give terrible performance.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

Thanks for the suggestion. I went back and tested the 486 configuration and it works with/without dynamic recompiler now for some reason. However I have tested most of the Pentium models and it crashes on WIndows 98SE loading. I did switch it to the Winchip 100 with dynamic recompiler, and it still does it. However when I turn off dynamic recompiler it works. It's something to do with the Pentium class dynamic recompiler. I did get a core dump a few times as well.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

I'm seeing some very strange behaviour on x86-64 Linux.

Does it work any better for you with a debug build (./configure --enable-debug)?
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: v15 & new recompiler update

Post by EluanCM »

Same behavior here when using a debug build on x86-64 Linux. I can't test on x86-64 Windows.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

I was already testing with --enable-debug. I was hoping it would build symbols for a backtrace.
jznomoney
Posts: 97
Joined: Sat 06 Dec, 2014 9:11 pm

Re: v15 & new recompiler update

Post by jznomoney »

When using pcem with the packard bell PB570 and having a cdrom enabled pcem crashes after the bios. The log just states:
Device failed to request command


I have attached a copy of my config.
Attachments
tester.cfg
(1.48 KiB) Downloaded 402 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

EluanCM/Zorix - what version of GCC are you guys using? My weird issues look to be due to a bug in GCC 6.3.0 and probably not anything you're seeing.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

Sarah, I am compiling with the version of GCC from Ubuntu 18.04:
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)

What weird issues are you seeing? I can try to reproduce them.
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: v15 & new recompiler update

Post by EluanCM »

Mine is also 7.3.0.

Code: Select all

gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)
My work laptop also uses the same version on an internal distro.
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: v15 & new recompiler update

Post by EluanCM »

Update: just tried with gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7), same crashes at the same points.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

Sorry, GCC version was specifically to do with some weird broken timing issues I was seeing with 6.3.0. Nothing to do with the crashes you've been reporting.
Fenix77
Posts: 80
Joined: Fri 01 Sep, 2017 11:59 am

Re: v15 & new recompiler update

Post by Fenix77 »

Hello!

I recently found another bug with the Packad Bell PB410A (486). Under Windows 3.00a with Video 7 driver (800x600 256 colors) the mouse pointer appears at startup but does not respond. The serial mouse does not work and PS/2 mouse works only if the dynamic recompiler is disabled.

Also the mouse cursor has strange size and does not point correctly at the buttons/icons at the 720x512 256 colors resolution.

The emulated machine is 486 SX/33, Sound Blaster 1.0, internal video 7 VGA card. Windows 3.00a with Multimedia Extension installed.

Here is a copy of the Video 7 VGA drivers. The drivers are dated May, 1992 but they work perfectly on Windows 3.0.

Thanks for the effort and in this emulator and to the collaborators for the new machines added.
Attachments
Video 7 Win 3.x drivers.zip
(128.46 KiB) Downloaded 408 times
Video 7 drivers
Video 7 drivers
Screenshot from 2019-04-30 16-43-49.png (56.36 KiB) Viewed 26124 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

x86-64 crashes should be fixed on rev 1432.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

Thanks Sarah, works great now.
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: v15 & new recompiler update

Post by EluanCM »

Working perfectly now, thanks!

Unfortunately my aging 2600k is not going to cut it for my games of the super socket 7 era :(
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

The performance did improve a bit for me on my Ryzen 2700X. Though I tried to play Unreal on Windows 98SE and got black screen on the intro and I instantly died on new game on a black screen too. Was not able to test this before so I don't know if it's my set up or anything that has changed. I'm running Voodoo 2 SLI as well.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

So I kept an older copy of the repository just before the new recompiler changes were merged in and ran Unreal and got this error:
Screenshot from 2019-04-30 22-37-45.png
Screenshot from 2019-04-30 22-37-45.png (4.77 KiB) Viewed 26064 times
After updating to the newest changes today, I get this on the title screen instead of the flying castle view:
Screenshot from 2019-04-30 22-40-54.png
Screenshot from 2019-04-30 22-40-54.png (68.3 KiB) Viewed 26061 times
I can still hit escape and start a new game but immediately this happens:
Screenshot from 2019-04-30 22-42-12.png
Screenshot from 2019-04-30 22-42-12.png (24.45 KiB) Viewed 26061 times
Not sure what to make of it. Same configuration used. I thought I read here that Unreal was supposed to work too.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

Probably another x86-64 bug...
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker »

Unreal should be working on rev 1435.
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

Looks good Sarah! Interesting you are using inline assembly to work around a GCC issue. I will keep testing other software and hardware configurations. Thanks for putting the time into fixing these issues.
User avatar
gen_angry
Posts: 127
Joined: Sat 25 Feb, 2017 6:48 am

Re: v15 & new recompiler update

Post by gen_angry »

tk421 wrote: Mon 01 Apr, 2019 6:59 pm I am sure v15 will be a big success. I am not sure which kind of CPU speed I would need to run a K6-2 cpu, but that would be really interesting to know. I am currently waiting for the new 9th gen laptops to be available for purchase. I would have purchased the new Alienware area 51m laptop by now, but it is only available in a 17 inch form factor, and typically I only buy 15 inch laptops.

gen_angry, have you succeeded in running Virtual PC 2007 on Win10 64 bit? It is nowhere near as good as PCem (it will never come close to the perfection that is PCem), but I know I would love to get it working on Windows 10 64 bit. If so, may I ask how you got Virtual PC 2007 working on Windows 10?
Not for a while, no. It's also unsupported for a decade so I'd be surprised if you got it working but it does exist.

They aren't even the same type of program - just that I've had better compatibility/performance for Win9x out of that than I did with VirtualBox.

PCem trumps them both for this type of use case tbf. Hopefully the new dynarec lets everyone push things a little bit quicker on the CPU front to cover that rough 1998-2000 gap.
MortalThing
Posts: 33
Joined: Tue 24 Mar, 2015 10:51 pm

Re: v15 & new recompiler update

Post by MortalThing »

Hi ,i have problem with new version https://bitbucket.org/pcem_emulator/pce ... db9312.zip
Sound card problems -> windows sound system -> crash in dos

NFS(Need for speed start install.exe -> sound card windows sound system is detect, but test is crash)
Spellcross(setsound.bat -> select windows sound system == break )
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Re: v15 & new recompiler update

Post by Zorix »

So I have hesitated to say something because I'm not sure if it's an issue with my machine but it's a very strange behavior. I have a Windows 98SE 430VX system set up which I have been testing with mainly. I noticed I'm getting very poor performance no matter which processor I get and it lags between 5% at worst to 102% in emulation of the cpu, but mainly jumps between about 46% to 100% pretty rapidly. Now if I reboot or power off the machine any number of times it will keep doing this. However, if I load up a configuration with DOS 6.22 on AMI WinBIOS 486 and then just exit emulation and then restart the 430VX it will run perfectly around 93-102% without any issues or lag and it will continue to do so until I occasionally get a segmentation fault (that I can't always reproduce, last time was on Sim City 3000), then it returns the the laggy behavior with the mouse lagging as well as severe audio studdering until I relaunch the 486 configuration and it's back to normal. I don't see how loading a different configuration can have any effect, they don't share any hard drive images or devices. I'm running a Ryzen 2700X with Ubuntu 18.04 64 bit. I'm wondering if anyone else has encountered this. Thanks.
szadycbr
Posts: 295
Joined: Mon 21 Nov, 2016 6:23 pm

Re: v15 & new recompiler update

Post by szadycbr »

Zorix , hi i have similar problems but on 32bit build on q4os (debian 9),all using 430vx, when nfs3 was always working with p100 100% now i get constant jumping from 92-100 which makes it all choppy, but good news is i can select higher cpus and they reach 100% but will never stay around 100% constantly.
Also sometimes it seems as if there is bottleneck somewhere as performance can drop to 2-4% for a 4-6 seconds and then it gets back to normal, i noticed it does it every time i boot windows desktop and when icons appear and os does load last bits it happen.
but it feels so much faster!!! :) Thanks.
MortalThing
Posts: 33
Joined: Tue 24 Mar, 2015 10:51 pm

Re: v15 & new recompiler update

Post by MortalThing »

MortalThing wrote: Thu 02 May, 2019 5:24 pm Hi ,i have problem with new version https://bitbucket.org/pcem_emulator/pce ... db9312.zip
Sound card problems -> windows sound system -> crash in dos

NFS(Need for speed start install.exe -> sound card windows sound system is detect, but test is crash)
Spellcross(setsound.bat -> select windows sound system == break )
This is problem -> SarahWalker fixed it. FIXED

FIXED VERSION
-> https://bitbucket.org/pcem_emulator/pce ... a93f141bb9
Post Reply