English Amiga Board


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

 
 
Thread Tools
Old 19 May 2019, 18:14   #341
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 38
Posts: 3,545
Quote:
Originally Posted by SnakeCoils View Post
Thank you very much, the error above is gone! However I found another break in compiling:
I have pushed a fix for compilation without JIT
FrodeSolheim is offline  
Old 20 May 2019, 08:36   #342
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Excellent! I've just tried a fresh compile with the latest 4210 branch but it crash at this point:

Code:
g++-mp-7 -DHAVE_CONFIG_H -I.  -DMACOSX -DMACOS -DUAE -DFSUAE    -I./flac/include -I./gen -I./src -I./src/jit -I./src/include -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./src/od-win32/caps -I./libfsemu/include  -I./manymouse -I./glad/include   -I./libudis86/include  -I./prowizard/include   -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DLUA_USE_POSIX -I/opt/local/include/libpng16 -I/opt/local/include -D_THREAD_SAFE -I/opt/local/include/SDL2 -I/opt/local/include  -fno-strict-overflow -fno-strict-aliasing -Wmissing-declarations -Waddress -fvisibility=hidden -I/opt/local/include/mpeg2dec -fpermissive -O3 -maltivec -mabi=altivec -MT src/libuae_a-x86.o -MD -MP -MF src/.deps/libuae_a-x86.Tpo -c -o src/libuae_a-x86.o `test -f 'src/x86.cpp' || echo './'`src/x86.cpp
In file included from src/x86.cpp:56:0:
src/pcem/codegen.h:12:2: error: #error Dynamic recompiler not implemented on your platform
 #error Dynamic recompiler not implemented on your platform
  ^~~~~
src/pcem/codegen.h: In function 'void addbyte(uint8_t)':
src/pcem/codegen.h:317:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:317:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
src/pcem/codegen.h: In function 'void addword(uint16_t)':
src/pcem/codegen.h:327:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:327:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
src/pcem/codegen.h: In function 'void addlong(uint32_t)':
src/pcem/codegen.h:337:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:337:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
src/pcem/codegen.h: In function 'void addquad(uint64_t)':
src/pcem/codegen.h:347:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:347:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
Before reaching this point I've seen some warnings here and there but the compile went fine. The argument "./configure --disable-jit" was declared as usual.
SnakeCoils is offline  
Old 20 May 2019, 08:44   #343
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Quote:
Originally Posted by eastone View Post
Welcome back SnakeCoils and thank you for the new version
This 2.9.8 is a bit faster than 2.9.7 and of course very stable on my G5 2.3
Glad to see it worked well also on G5 machines, on my G4 I din't noticed a big speed up but all the previous programs works as usual, it also a good thing it can still be compiled for PPC hosts because some recent changes in source indicates the minimum OSX should be 10.9 so I think at a certain point the changes will became so deep that a build under 10.5 would not be more possible. Let's see what is going to happen with incoming updates :-)
SnakeCoils is offline  
Old 20 May 2019, 12:34   #344
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 38
Posts: 3,545
Configure with
--disable-x86
as well (disables bridgeboard emulation)
FrodeSolheim is offline  
Old 20 May 2019, 22:22   #345
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Quote:
Originally Posted by FrodeSolheim View Post
Configure with
--disable-x86
as well (disables bridgeboard emulation)
Thank you very much Frode, however declaring

Code:
./configure --disable-jit --disable-x86
was not sufficient to avoid a break in the compile, this is what happened:

Code:
g++-mp-7 -DHAVE_CONFIG_H -I.  -DMACOSX -DMACOS -DUAE -DFSUAE    -I./flac/include -I./gen -I./src -I./src/jit -I./src/include -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./src/od-win32/caps -I./libfsemu/include  -I./manymouse -I./glad/include   -I./libudis86/include  -I./prowizard/include   -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DLUA_USE_POSIX -I/opt/local/include/libpng16 -I/opt/local/include -D_THREAD_SAFE -I/opt/local/include/SDL2 -I/opt/local/include  -fno-strict-overflow -fno-strict-aliasing -Wmissing-declarations -Waddress -fvisibility=hidden -I/opt/local/include/mpeg2dec -fpermissive -O3 -maltivec -mabi=altivec -MT src/libuae_a-x86.o -MD -MP -MF src/.deps/libuae_a-x86.Tpo -c -o src/libuae_a-x86.o `test -f 'src/x86.cpp' || echo './'`src/x86.cpp
In file included from src/x86.cpp:56:0:
src/pcem/codegen.h:12:2: error: #error Dynamic recompiler not implemented on your platform
 #error Dynamic recompiler not implemented on your platform
  ^~~~~
src/pcem/codegen.h: In function 'void addbyte(uint8_t)':
src/pcem/codegen.h:317:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:317:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
src/pcem/codegen.h: In function 'void addword(uint16_t)':
src/pcem/codegen.h:327:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:327:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
src/pcem/codegen.h: In function 'void addlong(uint32_t)':
src/pcem/codegen.h:337:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:337:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
src/pcem/codegen.h: In function 'void addquad(uint64_t)':
src/pcem/codegen.h:347:26: error: 'BLOCK_MAX' was not declared in this scope
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
src/pcem/codegen.h:347:26: note: suggested alternative: 'LONG_MAX'
         if (block_pos >= BLOCK_MAX)
                          ^~~~~~~~~
                          LONG_MAX
With a bit of luck, since I am not familiar with C programming at all, I was able to overcome this error editing the src/pcem/codegen.h part replacing this line:

Code:
#error Dynamic recompiler not implemented on your platform
with this other:

Code:
#define BLOCK_MAX 0
additionally the Tar command on OSX ppc seems to dislike the "J" option so in the /dist/macos/Makefile.in I have simply modified the argument in "Jcfv" in "zcfv" in this way:

Code:
    tar zcfv ../../$(dname).tar.xz FS-UAE.app
With these modification I was able to compile the actual 4210 branch and now I am testing it extensively. From a first impression it is somewhat slower than latest 2.9.8 branch and Picasso96 does not work (but this was expected). I am going to publish in the Zone now but I stronlgy suggest the other OSX PPC users to not throw away the previous binaries because this is only a WIP release.
SnakeCoils is offline  
Old 20 May 2019, 23:58   #346
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 38
Posts: 3,545
A slighly better fix is to move the WITH_X86 ifdef in src/x86.cpp further up so that src/pcem/codegen.h is not included at all; it can be moved up to below #include "sysdeps.h" for example:

Code:
#include "sysconfig.h"
#include "sysdeps.h"

#ifdef WITH_X86
...
(Will move that up there in the git repo soon, as well).

As for the tar command, using z instead of J, which is fine, produces a tar.gz file instead of tar.xz, so you want to change the archive extension as well ;-) :
Code:
tar zcfv ../../$(dname).tar.gz FS-UAE.app
(Yes, I expect FS-UAE to run a bit slower. At least the display rendering code is running a bit slower, I had to remove some optimizations I did in FS-UAE earlier, so for now, UAE re-renders the screen every frame even when nothing changes, but at least it displays correctly ).
FrodeSolheim is offline  
Old 21 May 2019, 07:44   #347
BastyCDGS
Registered User
 
Join Date: Nov 2015
Location: Freiburg / Germany
Age: 39
Posts: 119
Send a message via ICQ to BastyCDGS
Quote:
Originally Posted by FrodeSolheim View Post
(Yes, I expect FS-UAE to run a bit slower. At least the display rendering code is running a bit slower, I had to remove some optimizations I did in FS-UAE earlier, so for now, UAE re-renders the screen every frame even when nothing changes, but at least it displays correctly ).
Regardings display optimizations, you (and perhaps Toni, too) could consider my FFmpeg IFF-ILBM decoding routines, which can be found here:
https://github.com/FFmpeg/FFmpeg/blo...bavcodec/iff.c

They use quite large lookup tables, but are blazing fast.
Even HAM decoding doesn't need conditional branches in the inner main decoding loop.
However, it hasn't the HAM6-AGA fix (mul color 0x11 instead). Maybe worth a try!
BastyCDGS is offline  
Old 21 May 2019, 12:37   #348
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Quote:
Originally Posted by FrodeSolheim View Post
A slighly better fix is to move the WITH_X86 ifdef in src/x86.cpp further up so that src/pcem/codegen.h is not included at all; it can be moved up to below #include "sysdeps.h"
Much more elegant than my quick and dirty fix :-)

Quote:
Originally Posted by FrodeSolheim View Post
As for the tar command, using z instead of J, which is fine, produces a tar.gz file instead of tar.xz, so you want to change the archive extension as well ;-)
Yes, philologically is correct, I admit I didn't mind about the extension since it was working as it was. Before made further PPC builds I will wait for the next commits to 4210 branch.
SnakeCoils is offline  
Old 21 May 2019, 12:45   #349
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Quote:
Originally Posted by BastyCDGS View Post
They use quite large lookup tables, but are blazing fast.
Even HAM decoding doesn't need conditional branches in the inner main decoding loop.
However, it hasn't the HAM6-AGA fix (mul color 0x11 instead). Maybe worth a try!
Any speedup in graphics subsytem would be a godsend for PowerMacs since it is where FS-UAE show its weak point against E-UAE-JIT.
A good example of this can be seen in the Nexus 7 AGA demo in the part of the morphing face (pure HAM8 rendering) where everything chokes also on faster G5 machines.
SnakeCoils is offline  
Old 21 May 2019, 20:50   #350
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
The very latest OSX PPC binary of 4210 branch is online and ready to download in The Zone. Picasso 96 works again and overall seems a bit faster than previous build.
Compile went smooth and without errors, a truly good job Frode, thank you VERY VERY much! :-)
SnakeCoils is offline  
Old 23 May 2019, 08:32   #351
eastone
Registered User

 
Join Date: Nov 2014
Location: Vaasa
Posts: 14
Quote:
Originally Posted by SnakeCoils View Post
The very latest OSX PPC binary of 4210 branch is online and ready to download in The Zone.
Unfortunately this version is ~20% slower than previous one on G5.
eastone is offline  
Old 23 May 2019, 12:34   #352
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Quote:
Originally Posted by eastone View Post
Unfortunately this version is ~20% slower than previous one on G5.
This is the reason because I warned to not trash the previous FS-UAE binaries, at present the code (according to what Frode wrote some post above) still lack optimizations, maybe in the final version the emulator will run much smoother but do not expect a dramatic boost in performance: any advance in accuracy means more needed computation power.
SnakeCoils is offline  
Old 23 May 2019, 12:41   #353
eastone
Registered User

 
Join Date: Nov 2014
Location: Vaasa
Posts: 14
@SnakeCoils
No problem
It was just info
eastone is offline  
Old 23 May 2019, 13:50   #354
Methanoid
Retired Quartex Sysop
Methanoid's Avatar
 
Join Date: Sep 2001
Location: Roman Verulamium
Age: 53
Posts: 1,746
With a 1.25 Ghz G4 Mini which version is gonna give me best features with 100% Amiga speed??

Sent from my Redmi Note 7 using Tapatalk
Methanoid is offline  
Old 23 May 2019, 22:49   #355
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
Quote:
Originally Posted by Methanoid View Post
With a 1.25 Ghz G4 Mini which version is gonna give me best features with 100% Amiga speed??

FS-UAE has the accuracy and versatility as main goals, therefore the requirements for a nice experience are a bit high even for the old versions.
The fastest and reasonabily complete version of FS-UAE for PowerMacs you can execute is the 2.4.1 and on a MacMini you can run the most part of games and demos without major slowdowns (declaring the parameter Accuracy=-1), what really could make the difference would be a Level 3 cache on the CPU but it was not present in the processors of MacMini product line.
If you are going to accept some (many) compromises in accuracy but you absolutely want the fastest emulated Amiga possible on PowerMacs you have one only choice: E-UAE-JIT PPC from the developer Amos Rajnai.
The development is almost stopped now but the binary is available both for G4 and G5 machines: of course forget the CD32 and Picasso96 emulation but for the rest it is quite usable.
The hard work of Amos on the JIT recompiler for PPC is invaluable and so the efforts of Frode in mantain a project so "clean" and "open" to can be still compiled on PPC machines now, in 2019!
From what I have seen using both emulators I have understood that the major slowdowns of FS-UAE (on PPC hosts) are not related to CPU tasks but chipset emulation, any improvement in this direction (also from other developers with their own FS-UAE-PPC branch) would really make a world of difference.
In the meantime, if you are interested, I can re-upload the 2.4.1 OSX PPC binary in The Zone.
SnakeCoils is offline  
Old 28 May 2019, 01:00   #356
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
The (unofficial) OSX PPC binary of 2.9.10dev FS-UAE source is online and ready to download in The Zone.

Noticeably faster, on par with previous dev releases before the recent WinUAE merge. Very nice! :-)
SnakeCoils is offline  
Old 30 May 2019, 19:27   #357
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
The (unofficial) OSX PPC binary of 2.9.12dev FS-UAE source is online and ready to download in The Zone. Enjoy!
SnakeCoils is offline  
Old 27 June 2019, 20:29   #358
SnakeCoils
Registered User

 
Join Date: Mar 2014
Location: Italy
Posts: 141
The (unofficial) OSX PPC binary of 3.0.0 stable FS-UAE source is online and ready to download in The Zone. Enjoy!
SnakeCoils is offline  
Old 28 June 2019, 14:29   #359
vulture
Registered User
 
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,009
Awesome, thx!
vulture 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 G4 ppc OSX 10.5.8 elowan support.FS-UAE 35 10 November 2014 19:22
[QUESTION] Will we see PPC support in FS-UAE too? amigafreak68k support.FS-UAE 39 09 September 2014 22:28
JIT on E-UAE PPC? _ThEcRoW support.OtherUAE 8 06 May 2011 23:55
PPC Emulation in UAE Beakster support.WinUAE 9 15 March 2008 11:28
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 02:36.


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