English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 22 August 2009, 13:22   #1
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
68030, 68040 and 68060 MMU support (really!)

Aranym's 68040 MMU code was finally enabled today. (and executable size is now about 8 megabytes, 5th CPU core. yay..)

No, it isn't really working yet but at least it gets as far as setpatch setting up MMU tables and then it does something weird..

No, JIT is not supported and never will.

Note that I am not going to fix/update the code if it has some missing features that Amiga software requires.

UPDATE: 68040.library works now, enforcer still causes infinite bus errors.

Last edited by Toni Wilen; 22 August 2009 at 15:49.
Toni Wilen is offline  
Old 22 August 2009, 16:08   #2
Predabot
Registered User
 
Predabot's Avatar
 
Join Date: Nov 2008
Location: Swedun'
Posts: 397
Is Aranym another developer then? Some guy who decided to pitch in with some 68040-code? If so, cudos to him. Must be nice knowing you're not all alone in the world, trying to get Amiga-emulation to perfection.
Predabot is offline  
Old 22 August 2009, 16:13   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Aranym is (expanded) Atari ST/TT/Falcon emulator
Toni Wilen is offline  
Old 22 August 2009, 16:33   #4
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Thumbs up

FANTASTIC ! This might mean: the future *may* bring Amiga UNIX alternatives to Minix (which only works in ancient version on the current emulation core)

Quote:
No, JIT is not supported and never will.
Thanks, I'd love to preserve data integrity at least in my Amiga UNIX case
JIT is great for gaming or Mandelbrot-ish gfx, but when it comes to alien file-systems emulated in an emulator on its part, I'll gladly live without
andreas is offline  
Old 22 August 2009, 16:37   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by andreas View Post
FANTASTIC ! This might mean: the future *may* bring Amiga UNIX alternatives to Minix (which only works in ancient version on the current emulation core)
AFAIK "official" Amiga Unix is 68030 only. (68040 MMU is totally different than 68030 MMU. 68030 MMU is extremely complex, 68040 is relatively simple)
Toni Wilen is offline  
Old 22 August 2009, 18:58   #6
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Quote:
Originally Posted by Toni Wilen View Post
AFAIK "official" Amiga Unix is 68030 only.
Ouch. so my enthusiasm might have been a bit over the top once more...

Quote:
68030 MMU is extremely complex, 68040 is relatively simple)
Yes, you mentioned the former at least a million times.
Maybe someday there will be in fact a volunteer to code this awfully cumbersome 68030 MMU emulation. We have to face the fact you do not want to do it (your decision, isn't it)

Surely Dave Haynie could help you a lot with this - but he seems to have disappeared from public reach for good...
andreas is offline  
Old 23 August 2009, 12:05   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Enforcer seems to work now. It is more than enough for me

Problem reports will be posted here when beta is available.. (MMU is bonus feature that may or may not work in next official version)
Toni Wilen is offline  
Old 23 August 2009, 22:12   #8
JohnF
Registered User
 
Join Date: Aug 2009
Location: UK
Posts: 23
If I get chance, I'll see if I can boot a NetBSD kernel, but that might be asking a lot...
JohnF is offline  
Old 23 August 2009, 22:19   #9
frank_b
Registered User
 
Join Date: Jun 2008
Location: Boston USA
Posts: 466
Quote:
Originally Posted by JohnF View Post
If I get chance, I'll see if I can boot a NetBSD kernel, but that might be asking a lot...
The Atari port of Net BSD can apparently boot on Aranym.
frank_b is offline  
Old 24 August 2009, 08:22   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
It is guaranteed to not boot yet (some instructions won't restart properly after bus error) but some kind of 68040 Unix/Linux installation would be nice compatibility test case.
Toni Wilen is offline  
Old 24 August 2009, 14:23   #11
Mad-Matt
Longplayer
 
Mad-Matt's Avatar
 
Join Date: Jan 2005
Location: Lincoln / UK
Age: 44
Posts: 1,846
Send a message via ICQ to Mad-Matt Send a message via MSN to Mad-Matt
I havent done much to stress mmu testing yet, but have tried a couple of things. MuMove4k (MMULIB Module) seems to cause a ramlib error (not mumove4k itself - just the effect of having it running with some other prog i havent identified yet). It will error on every boot if i manualy reboot but clicking reboot on the error message box, it will guru but then wb will load fine.

Once working MuFastZero seems to work ok, but expansion.lib still seems stuck in chipmem even though sysinfo says Fast Mem (instead of usual 32bit fastmem).

mmulib 68k libs in use (doesnt auto move vbr like phase5 libs do).

lastly CPU FASTROM doesnt appear to do anything still. (tried a few 68040 libs).

ill see if i can enable virtual memory in mac emu later (mmu enabled mode) and try Asp spectrum emu (Although i think that already works anyway without mmu)
Mad-Matt is offline  
Old 24 August 2009, 16:06   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
MMULib 68040.library does not seem to work but without sources it will be too time consuming task..

EDIT: what happens is that mmu.library or 68040.library does some kind of test read, which causes bus error (access violation) as expected, error handler does some MMU page reconfiguration and when handler exits, test read instruction restarts but it still causes bus error which probably shouldn't happen. (MMU table has been changed, bus error isn't exactly the same)

Last edited by Toni Wilen; 24 August 2009 at 19:05.
Toni Wilen is offline  
Old 28 August 2009, 21:43   #13
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
It seems to work now (note that this isn't beta 11, ignore title bar text) but I am not sure if there is any point..
Attached Thumbnails
Click image for larger version

Name:	mmuworks.png
Views:	2508
Size:	61.5 KB
ID:	22499  
Toni Wilen is offline  
Old 28 August 2009, 22:00   #14
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Hi Toni,

The point is that if you can get this working, it might stimulate the development of an "official" Amiga Unix for the 68040.
prowler is offline  
Old 29 August 2009, 08:40   #15
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
You're great Toni, thanks!

I tried merging Aranym back by myself (which led exactly nowhere so far ), and now you took me completely by surprise.

Did you use Linux/m68k for that screenshot?
gilgamesh is offline  
Old 29 August 2009, 09:08   #16
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by gilgamesh View Post
You're great Toni, thanks!

I tried merging Aranym back by myself (which led exactly nowhere so far ), and now you took me completely by surprise.

Did you use Linux/m68k for that screenshot?
It is latest 68k Linux kernel from Aminet booted with amiboot. Kernel only, didn't bother with real installation.
Toni Wilen is offline  
Old 29 August 2009, 13:00   #17
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Beta 12 includes Linux compatible 68040 MMU.

If someone is interested with M68K Linux: please upload working Linux HDF (using SCSI or IDE emulated hardware) with basic utilities included, thanks
Toni Wilen is offline  
Old 29 August 2009, 15:28   #18
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
The last Debian with proper Amiga support was probably Slink. (Sarge has floppy installers for Atari only.) Let's see whether these installation instructions are useful.

EDIT: Sarge can be installed from HD. see here and load images from here

Last edited by gilgamesh; 29 August 2009 at 15:35.
gilgamesh is offline  
Old 29 August 2009, 19:05   #19
JohnF
Registered User
 
Join Date: Aug 2009
Location: UK
Posts: 23
This is a rather old NetBSD kernel, but it did boot (note the details of sd0):
Attached Thumbnails
Click image for larger version

Name:	001.png
Views:	2168
Size:	16.1 KB
ID:	22512  
JohnF is offline  
Old 29 August 2009, 21:04   #20
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Great

Mulib crash is due to bug in original Aranym MMU emulation (I sent report to original authors), this will be fixed in next beta.
Toni Wilen is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
68040 vs 68060 tesla support.Hardware 10 20 April 2013 19:13
68040 MMU jsr/bsr Toni Wilen Coders. General 5 28 April 2010 20:57
68060 fpu not available mmu not active amigarlz support.Hardware 6 18 March 2010 06:35
WTB: 68030 or 68040 accelerator for A2000 Shadowfire MarketPlace 2 19 September 2009 17:52
68030/mmu Support in WinUAE dkovacs request.UAE Wishlist 19 22 August 2005 14:42

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:31.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.31371 seconds with 14 queries