English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 07 October 2014, 20:31   #81
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by amigafreak68k View Post
You know a address
I meant more testing by *me* first -But after that, I know where you live! (actually I don't, but I know where to post an OS X binary for you to test )
FrodeSolheim is offline  
Old 08 October 2014, 22:42   #82
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
@amigafreak68k - version with fix for reset problem:
http://fs-uae.net/devel/2.5.18dev5/ (don't enable slirp with this version)
http://fs-uae.net/devel/plugins/qemu...osx-x86.tar.gz
FrodeSolheim is offline  
Old 09 October 2014, 06:26   #83
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
I'll try it this evening
amigafreak68k is offline  
Old 09 October 2014, 17:00   #84
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
The issue isn't fixed at all.

what does work:

- reboot with A + A + Ctrl

what doesn't work:

- reboot after Installation of AOS 4.1 with "Reboot NOW"-button (FS-UAE-emulation hangs and I must quit FS-UAE, no cold boot possible!)
- reboot in installed workbench with "reboot"-command -> after Update 6 I get green screen. In case of green screen I can use cold boot from FS-UAE menu!
amigafreak68k is offline  
Old 09 October 2014, 17:23   #85
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by amigafreak68k View Post
The issue isn't fixed at all.
Well, at least the Ctrl + A + A issue is fixed (that was what I was testing)

Oh well, back to the drawing board.

(Btw, you mentioned green screen after update 6, does this mean you do not get a green screen in earlier AmigaOS 4.1 versions? EDIT: nevermind, AmigaOS 4.1 Update 2 gets a green screen 100% of the time when issuing the reboot command)

Last edited by FrodeSolheim; 09 October 2014 at 18:51.
FrodeSolheim is offline  
Old 09 October 2014, 20:24   #86
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
I don't know! I tested with my old installed System (Update 6) and got the green screen with "reboot" command. After that I reinstalled the system to test the reboot process after the installation itself. This is where I get the system freeze.
amigafreak68k is offline  
Old 09 October 2014, 20:34   #87
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
BTW: time to motivate you a little bit

Frode, you did a great job. For classic Amiga emulation and especially for the PPC part itself! Last but not least a great work with your own implementation of the upcoming slirp support!!

So keep up the great work and thanks for such a great piece of software!
amigafreak68k is offline  
Old 09 October 2014, 23:37   #88
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
amigafreak68k Don't worry, I'm not discouraged. but nice you you to consider my motivation. And the latest reset fix was a real fix for a real crash, so that wasn't a dead end. This is just something else.

Fortunately it is easy to reproduce (it happens every time I issue the "reboot" command in AmigaOS 4.1 update 2). It is also relatively easy to see what is going on. I have some leads but will have to dig some more...
FrodeSolheim is offline  
Old 09 October 2014, 23:52   #89
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
OK, I have discovered the cause of the green screen when issuing the "reboot" command in AmigaOS 4.1, and can therefore create a "fix" / workaround. However, I may need to consult with Toni so we can figure out the correct fix.

The problem is that immediately after issuing the reboot command, Cyberstorm maprom is disabled (CyberStorm MAPROM = 0 in the log file). This causes, the when machine resets "CPUBoard MAPROM" to be mapped at FFF00000 instead of the usual "CPUBoard MAPROM2", and the end result is that the PPC tries to execute garbage instead of PPC instructions.

The (incorrect) workaround is to just ignore the request to disable maprom (then, maprom_state will not be set to 0, "CPUBoard MAPROM2" will be mapped to FFF00000 again, and AmigaOS 4.1 restarts nicely). Of course, this is just a hack. So now the job is to found out what is really supposed to happen.

And this could just be treating the symptom. It isn't necessarily a bug that the maprom is disabled, the bug could just as well be that it isn't enabled during the reset - as it is when the system cold boots for example. I'm not sure at this point.

EDIT: it is a bit random if the system resets to a green screen, or if it freezes even before the machine resets. It depends on how fast the maprom is disabled. If it is disabled fast enough it seems the PPC CPU will execute garbage - and halt - before it manages to reset the system.

Here's some log output leading up to maprom state being disabled:
Code:
CS IO XBPUT 00f60018 81 PC=00f8014c
CS: Flash writable = 1
oldval: 0x3e regval: 0x3f v: 0x81
CyberStorm MAPROM = 0

Last edited by FrodeSolheim; 10 October 2014 at 00:28.
FrodeSolheim is offline  
Old 11 October 2014, 10:31   #90
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Good news, I found the underlying issue. The problem was that when maprom is turned of, the chip memory bank isn't restored to it's original state. Therefore, the reboot sequence isn't complete, maprom isn't enabled during booting, and AmigaOS cannot load.

So a proper fix for the green screen is right around the corner

Regarding the occasional freeze-on-reboot issue, it turns out that this is a completely separate issue. The freeze occurs when maprom is disabled and the PPC CPU just after decides to jump to an interrupt handler / exception vector to handle for example an external interrupt. This does not work, as the exception vector routine has disappeared when maprom was disabled. Perhaps it just "accidentally" works on real Amigas due to tiny timing differences - or perhaps there's some other unknown factor which prevents the PPC CPU from executing an exception routine between maprom disable and reset - or even some other "magic" which lets the PPC CPU access the exception vectors also when maprom is disabled.
FrodeSolheim is offline  
Old 11 October 2014, 14:21   #91
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Current status: The underlying issue is confirmed to be the problem. I sent a proof-of-concept fix to Toni, and he has done a more thorough fix for it. I've already integrated this patch into FS-UAE

@amigafreak68k if you have time to test today I can provide an OS X build!

Regarding the freeze, this is still unresolved. Someone is doing some testing on real hardware for reference. If it turns out the issue cannot easily be resolved (i.e. it just accidentally works on real hardware because of CPU cache or something), then we can probably add a simply hack instead (like doing an immediate reset when maprom is disabled if the m68k is stopped).

For now, when the freeze occurs, a manual soft reset fixes it.
FrodeSolheim is offline  
Old 11 October 2014, 14:31   #92
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Quote:
Originally Posted by FrodeSolheim View Post
@amigafreak68k if you have time to test today I can provide an OS X build!
No problem, but today I'm very busy. For tomorrow it looks better
amigafreak68k is offline  
Old 11 October 2014, 15:12   #93
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by amigafreak68k View Post
No problem, but today I'm very busy. For tomorrow it looks better
Sounds like a plan, there's a third PPC issue still resolved anyway (but that's seems to hit WarpOS harder then AmigaOS 4...)
FrodeSolheim is offline  
Old 11 October 2014, 19:29   #94
mulder77
Registered User
 
Join Date: Aug 2014
Location: Germany
Posts: 58
Any timeline of the SLIRP support for Linux hosts?
mulder77 is offline  
Old 12 October 2014, 16:11   #95
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Quote:
Originally Posted by FrodeSolheim View Post
Sounds like a plan, there's a third PPC issue still resolved anyway (but that's seems to hit WarpOS harder then AmigaOS 4...)
BTW... I'm ready
amigafreak68k is offline  
Old 12 October 2014, 18:05   #96
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by amigafreak68k View Post
BTW... I'm ready
Go ahead (also includes a fix for the third issue I mentioned yesterday) -You need to update both FS-UAE and the QEMU-UAE plugin:

http://fs-uae.net/devel/2.5.18dev6/ (non-slirp-version)
http://fs-uae.net/devel/plugins/qemu...osx-x86.tar.gz

(I have only tested the fixes on Linux)

Quote:
Originally Posted by mulder77 View Post
Any timeline of the SLIRP support for Linux hosts?
A bit offtopic for this thread, but it will be included in regular dev. versions when I'm satisfied everything works as it should. Right now I've been occupied with PPC issues.
FrodeSolheim is offline  
Old 12 October 2014, 18:38   #97
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Hi Frode,

I'd tested the latest dev build!

What's working:

- A + A + Ctrl
- Reboot after Installation(s) (sometimes, I'd tested twice. one works, the another one not)
- Reboot with "reboot" command (sometimes, I'd tested twice. one works, the another one not)

As you see, no "What's not working" section!

All not working reboots we can reset with the Cold-/Warm reboot menu entries from FS-UAE without emulation freeze at all!

Great work!

Should I look for another issue in this build??
amigafreak68k is offline  
Old 12 October 2014, 22:53   #98
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by amigafreak68k View Post
As you see, no "What's not working" section!
Excellent

Quote:
Originally Posted by amigafreak68k View Post
Should I look for another issue in this build??
No, not really. And regarding the reset freeze issue, the problem is fairly well understood. It looks like the reboot program may just "accidentally" work on real hardware, and that it should have disabled interrupts before disabling maprom. A disassembly of the reboot program may yield more information. There's several possible workaround, so it's just a matter of deciding which one is least likely to have any negative effects.
FrodeSolheim is offline  
Old 17 October 2014, 16:45   #99
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
I compiled fs-uae 2.5.19dev and qemu-uae from git but PPC emulation refuses to start: "WARNING: PPC: Wanted qemu-uae version 2.x (got 3.x)".
How can I fix this?
jbl007 is offline  
Old 17 October 2014, 16:46   #100
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by jbl007 View Post
I compiled fs-uae 2.5.19dev and qemu-uae from git but PPC emulation refuses to start: "WARNING: PPC: Wanted qemu-uae version 2.x (got 3.x)".
How can I fix this?
Doublecheck that you are infact running 2.5.19dev!
FrodeSolheim 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
FS-UAE for OS X PPC (Not officially supported) SnakeCoils support.FS-UAE 409 08 August 2023 20:23
[QUESTION] Will we see PPC support in FS-UAE too? amigafreak68k support.FS-UAE 39 09 September 2014 22:28
[FS-UAE] New Dedicated Forum: support.FS-UAE FrodeSolheim support.FS-UAE 1 02 October 2012 20:12
WinUAE ppc support? blasterreal support.WinUAE 8 29 September 2010 00:51
PPC UAE on os 3.9 DDNI request.UAE Wishlist 7 26 October 2006 19:09

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 12:06.

Top

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