Re: [Freedos-devel] VME broken on Ryzen CPU, autodetection useful?

2023-11-19 Thread Liam Proven via Freedos-devel
On Tue, 14 Nov 2023 at 19:32, Rugxulo via Freedos-devel
 wrote:
>
> One guy emulates the old 8-bit CP/M OS (and Z80 cpu) via Ultibo
> (written in Free Pascal), thus
> allowing him to run Turbo Pascal 3 for CP/M :
>
> * http://www.projekte.daleske.de/prog/11_EMUZ80_RPI/prog_EMUZ80_RPI_en.htm

The cheapest CP/M box I know is the LilyGHo TTGo VGA32:

https://lehwalder.wordpress.com/2021/04/07/runcpm-on-the-lilygo-ttgo-vga32-v1-4/

They are £12 one-off I believe.

The Pi Pico can do it too:

https://lehwalder.wordpress.com/2022/08/23/runcpm-on-the-raspberry-pi-pico/

That's £5.

> Another guy tried porting Project Oberon (compiler and OS) to Ultibo :
>
> * https://github.com/MGreim/ultiboberon

I looked at that. Sadly not a port, but a port of an emulator.

Oberon used to support StrongARM so a native port would be much more
desirable IMHO.


--
Liam Proven ~ Profile: https://about.me/liamproven
Email: lpro...@cix.co.uk ~ gMail/gTalk/FB: lpro...@gmail.com
Twitter/LinkedIn: lproven ~ Skype: liamproven
IoM: (+44) 7624 277612: UK: (+44) 7939-087884
Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053


___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] VME broken on Ryzen CPU, autodetection useful?

2023-11-14 Thread Rugxulo via Freedos-devel
Hi,

On Mon, Nov 13, 2023 at 9:19 PM Steve Nickolas via Freedos-devel
 wrote:
>
> I think there may be a point where if one's going to run DOS on
> a modern machine, it'll have to be through some degree of emulation.
> Whether that be a KVM/QEMU-on-metal approach, or a 64-bit "DOS" which can
> emulate a Pentium MMX or so, VESA SVGA, SB16, etc. for legacy apps...
>
> (Actually, I'd be interested in something of this ilk if I knew more,
> having run a stripped-down Apple //e emulator on bare-metal from UEFI and
> then giving up because I couldn't read the damned Alt keys...)

Just for comparison, for Raspberry Pi (ARM), *not* running atop Linux
(or any other host OS):

One guy emulates the old 8-bit CP/M OS (and Z80 cpu) via Ultibo
(written in Free Pascal), thus
allowing him to run Turbo Pascal 3 for CP/M :

* http://www.projekte.daleske.de/prog/11_EMUZ80_RPI/prog_EMUZ80_RPI_en.htm

Another guy tried porting Project Oberon (compiler and OS) to Ultibo :

* https://github.com/MGreim/ultiboberon


___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] VME broken on Ryzen CPU, autodetection useful?

2023-11-13 Thread Steve Nickolas via Freedos-devel

On Mon, 13 Nov 2023, Rugxulo via Freedos-devel wrote:


Ryzen (Zen 1) was brand new in 2017, redesigned from scratch. I doubt
the current Zen 4 (2022) has that bug, but who knows. (Now that the
BIOS and CSM are dead, they may not care to fix it. And the whole
"x86-S" rumors imply legacy is going away.)


Though I think that's mainly an Intel thing (x86S, I mean).

That said, I think there may be a point where if one's going to run DOS on 
a modern machine, it'll have to be through some degree of emulation. 
Whether that be a KVM/QEMU-on-metal approach, or a 64-bit "DOS" which can 
emulate a Pentium MMX or so, VESA SVGA, SB16, etc. for legacy apps...


(Actually, I'd be interested in something of this ilk if I knew more, 
having run a stripped-down Apple //e emulator on bare-metal from UEFI and 
then giving up because I couldn't read the damned Alt keys...)


-uso.


___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] VME broken on Ryzen CPU, autodetection useful?

2023-11-13 Thread Rugxulo via Freedos-devel
Hi,

On Mon, Nov 13, 2023 at 7:44 AM Eric Auer via Freedos-devel
 wrote:
>
>
> Hi! I just got reminded that (2017 news)
>
> http://www.os2museum.com/wp/vme-broken-on-amd-ryzen/
>
> VME is broken on AMD Ryzen of that time

Ryzen (Zen 1) was brand new in 2017, redesigned from scratch. I doubt
the current Zen 4 (2022) has that bug, but who knows. (Now that the
BIOS and CSM are dead, they may not care to fix it. And the whole
"x86-S" rumors imply legacy is going away.)

> That sounds like
> something which would be relevant for JEMM386, because it
> could automatically activate NOVME mode for affected CPU.

It's faster with VME (on Pentium and up), right?

> Does anybody remember whether it does?

* https://github.com/Baron-von-Riedesel/Jemm/releases

v5.79 (Oct 31, 2020)
"VME (virtual mode extensions) is now off by default; there exist CPUs
that claim to support VME but actually don't."

> And whether AMD has fixed the issue in later Ryzen or other CPU versions?

Not sure. I'll search Google.

* https://wiki.gentoo.org/wiki/Ryzen

"Broken VME (Virtual-8086 Mode Enhancements) on 1st gen Ryzen

1st Ryzen processors generation had a broken VME implementation:
16-bits VM86 tasks within a 32-bits protected mode OS crash. This has
been fixed by a later microcode revision"

* http://www.os2museum.com/wp/vme-fixed-on-amd-ryzen/

Odd, the fix was mentioned on OS/2 Museum (in 2017, again).

"The fix is shipped in the form of a microcode patch as part of AGESA
1.0.0.6, currently being rolled out by OEMs as part of a BIOS update.
The patch level for the fixed microcode is 8001126 or higher. The
older microcode revision 800111C (part of AGESA 1.0.0.4a) is known to
have trouble with VME."

But looking at this VOGONS thread, I'm unsure:

* https://www.vogons.org/viewtopic.php?t=53952&start=20


___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] VME broken on Ryzen CPU, autodetection useful?

2023-11-13 Thread Eric Auer via Freedos-devel



Hi! I just got reminded that (2017 news)

http://www.os2museum.com/wp/vme-broken-on-amd-ryzen/

VME is broken on AMD Ryzen of that time. That sounds like
something which would be relevant for JEMM386, because it
could automatically activate NOVME mode for affected CPU.

Does anybody remember whether it does? And whether AMD
has fixed the issue in later Ryzen or other CPU versions?

Regards, Eric

PS: For Win9x fans, there is a binary patch for VMM VXD
https://github.com/JHRobotics/patcher9x In VMWare, one
also had to manually select AMD-V virtualization? More
hints on Win9x, in German, can be read on creopard.de



___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel