v15 & new recompiler update
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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.
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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.
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
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)?
Does it work any better for you with a debug build (./configure --enable-debug)?
Re: v15 & new recompiler update
Same behavior here when using a debug build on x86-64 Linux. I can't test on x86-64 Windows.
Re: v15 & new recompiler update
I was already testing with --enable-debug. I was hoping it would build symbols for a backtrace.
Re: v15 & new recompiler update
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.
Device failed to request command
I have attached a copy of my config.
- Attachments
-
- tester.cfg
- (1.48 KiB) Downloaded 405 times
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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.
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
What weird issues are you seeing? I can try to reproduce them.
Re: v15 & new recompiler update
Mine is also 7.3.0.
My work laptop also uses the same version on an internal distro.
Code: Select all
gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)
Re: v15 & new recompiler update
Update: just tried with gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7), same crashes at the same points.
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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.
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 410 times
-
- Video 7 drivers
- Screenshot from 2019-04-30 16-43-49.png (56.36 KiB) Viewed 26266 times
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
x86-64 crashes should be fixed on rev 1432.
Re: v15 & new recompiler update
Thanks Sarah, works great now.
Re: v15 & new recompiler update
Working perfectly now, thanks!
Unfortunately my aging 2600k is not going to cut it for my games of the super socket 7 era
Unfortunately my aging 2600k is not going to cut it for my games of the super socket 7 era
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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:
After updating to the newest changes today, I get this on the title screen instead of the flying castle view:
I can still hit escape and start a new game but immediately this happens:
Not sure what to make of it. Same configuration used. I thought I read here that Unreal was supposed to work too.- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
Probably another x86-64 bug...
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: v15 & new recompiler update
Unreal should be working on rev 1435.
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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.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?
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.
-
- Posts: 33
- Joined: Tue 24 Mar, 2015 10:51 pm
Re: v15 & new recompiler update
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 )
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 )
Re: v15 & new recompiler update
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.
Re: v15 & new recompiler update
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.
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.
-
- Posts: 33
- Joined: Tue 24 Mar, 2015 10:51 pm
Re: v15 & new recompiler update
This is problem -> SarahWalker fixed it. FIXEDMortalThing 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 )
FIXED VERSION -> https://bitbucket.org/pcem_emulator/pce ... a93f141bb9