Poster | Thread |
pavlor
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 16:16:52
| | [ #21 ] |
|
|
 |
Elite Member  |
Joined: 10-Jul-2005 Posts: 9660
From: Unknown | | |
|
| @Samurai_Crow
I think QEMU requires solid memory management to work (at least I was told so when I asked for AmigaOS port). Other than that, emulation of PowerPC on "68k" would be really slow (cca 4 MHz 460EX ). |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 16:23:33
| | [ #22 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
qemu need min 256mb for minimal configuration for run
_________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 16:34:09
| | [ #23 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| just made a fast test on G5 with 405ep cpu and kvm run on it. it mean the Sam 460 will be kvm virtualized when done _________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
Hypex
 |  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 17:09:26
| | [ #24 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @tlosm
AROS and Linux iso-s use the Parthenope (ub2lb) bootloader which currently fails when it calls the start_unit_scan with NULL first argument in cdrom.c:get_dev() which causes a null pointer dereference in U-Boot/board/ACube/common/sys_dep.c:start_unit_scan() which causes an exception in QEMU (vector 1300, I think it's Data TLB Error) and this leads to breakage.
LOL! It's not a bug in the emulator. It's a bug in the ub2lb code. It does indeed send a NULL which clealry violates that API function. Took me a month to find it! When I was porting the code to AmigaOne. Wish I had that QEMU back then with sources when I was debugging it. All I had was a UBoot crashlog over serial and laying printf()'s in the code till it turned up. But somewhow on the Sam it works. I thought the Sam UBoot may have had some work around but according to that it doesn't look like it. So don't know how the hardware is configured to ignore a NULL DSI crash. |
|
Status: Offline |
|
|
Samurai_Crow
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 17:23:56
| | [ #25 ] |
|
|
 |
Elite Member  |
Joined: 18-Jan-2003 Posts: 2320
From: Minnesota, USA | | |
|
| re:4 MHz
Maybe, but the Vampire has more registers than the PPC 400 series and a smarter cache controller. Does QEmu have a JIT?
re:256 megs of RAM
In the stand alone model, I think it will have 256 megs. Don't quote me though. |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 17:27:09
| | [ #26 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @Hypex
Contact Zoltan and help him about. _________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 17:28:46
| | [ #27 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @Samurai_Crow
It have but not for all the architectures . _________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
pavlor
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:08:48
| | [ #28 ] |
|
|
 |
Elite Member  |
Joined: 10-Jul-2005 Posts: 9660
From: Unknown | | |
|
| @Samurai_Crow
Quote:
Maybe, but the Vampire has more registers than the PPC 400 series and a smarter cache controller. Does QEmu have a JIT? |
It has some sort of generic dynamic emulation, but speed is comparable to cca 1/30 of native performance. You can´t expect miracles with such slow hardware like Vampire (cca 1/15-1/20 of 460EX 1.1 GHz performance).
Quote:
I think it will have 256 megs |
512 MB in the announcement PDF. |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:32:44
| | [ #29 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
This is Qemu in kvm running Osx tiger and classic inside it .. check the speedometer performances.. Note there is a bug in qemu because kvm run at the half of the MOL kvm performances in computing ... it is like a G5 1.25 mhz. The 68k in classic is like a G4 400mhz in computing (sonnet board). Quadra 950 is 1.3 points in cpu. .. 5.11 is 68060 66mhz
photo Last edited by tlosm on 22-Aug-2017 at 07:34 PM.
_________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
pavlor
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:36:14
| | [ #30 ] |
|
|
 |
Elite Member  |
Joined: 10-Jul-2005 Posts: 9660
From: Unknown | | |
|
| @tlosm
Well, most of us would use QEMU/SAM460 emulation on PCs without such KVM accelleration. |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:38:18
| | [ #31 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
my I7 on PowerBook 2012 gave me 40 points cpu speedometer in qemu using it jit _________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
pavlor
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:45:52
| | [ #32 ] |
|
|
 |
Elite Member  |
Joined: 10-Jul-2005 Posts: 9660
From: Unknown | | |
|
| @tlosm
Quote:
my I7 on PowerBook 2012 gave me 40 points cpu speedometer in qemu using it jit |
Hard to judge Speedometer scores (I don´t like synthetic benchmarks). G4 400 MHz has 30.61 CPU score.
Try some application benchmark (eg. dnetc - OGR-NG scales well with performance and could be comparable to G3 scores). |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:45:58
| | [ #33 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| i forget to say ... now ppc is multi threads tcg ... it mean you will have one core every host thread emulated.
16 threads ... 16 ppc jit cores.
_________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:47:38
| | [ #34 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
i try but i cant go on dnet website from qemu because safari is really old on tiger. i will try to make a lan share but i think will be really hard.
if you have a place to download dnet i will try to download it _________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
pavlor
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:49:18
| | [ #35 ] |
|
|
 |
Elite Member  |
Joined: 10-Jul-2005 Posts: 9660
From: Unknown | | |
|
| |
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:54:21
| | [ #36 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
downloaded thanks ... preparing for benchmarking _________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:58:22
| | [ #37 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
better than a sam and at the half of the speed in kvm
photo
note im using only one core in tiger no smp for the g3 Last edited by tlosm on 22-Aug-2017 at 07:59 PM.
_________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|
michalsc
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:59:11
| | [ #38 ] |
|
|
 |
AROS Core Developer  |
Joined: 14-Jun-2005 Posts: 421
From: Germany | | |
|
| @Hypex
Quote:
LOL! It's not a bug in the emulator. It's a bug in the ub2lb code. It does indeed send a NULL which clealry violates that API function. Took me a month to find it! When I was porting the code to AmigaOne. Wish I had that QEMU back then with sources when I was debugging it. All I had was a UBoot crashlog over serial and laying printf()'s in the code till it turned up. But somewhow on the Sam it works. I thought the Sam UBoot may have had some work around but according to that it doesn't look like it. So don't know how the hardware is configured to ignore a NULL DSI crash. |
Apparently this line of code was added on purpose, svn revision 60, quoting the author:
Quote:
Author: gicoviello Date: 2008-06-07 07:26:18 -0700 (Sat, 07 Jun 2008)
Log Message: ----------- added fallback scan_list for bogus uboot
|
and part of the commit:
Quote:
Modified: branches/parthenope/src/cdrom.c =================================================================== --- branches/parthenope/src/cdrom.c 2008-06-07 13:16:44 UTC (rev 59) +++ branches/parthenope/src/cdrom.c 2008-06-07 14:26:18 UTC (rev 60) @@ -471,6 +471,8 @@ SCAN_HANDLE hnd; uint32_t blocksize;
+ start_unit_scan(NULL, &blocksize); + for (hnd = start_unit_scan(get_scan_list(), &blocksize); hnd != NULL; hnd = next_unit_scan(hnd, &blocksize)) { if (hnd->ush_device.type == DEV_TYPE_CDROM) {
|
Probably old versions of UBOOT of that day (year 2008) had issues one some configurations of sam440/sam460(?). I'm more than sure that Giuseppe, who did that commit, knew exactly what he was doing.
Maybe new UBoot just silently ignores DSI... Dunno... |
|
Status: Offline |
|
|
pavlor
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 19:59:28
| | [ #39 ] |
|
|
 |
Elite Member  |
Joined: 10-Jul-2005 Posts: 9660
From: Unknown | | |
|
| |
Status: Offline |
|
|
tlosm
|  |
Re: sam460 emulated in qemu Posted on 22-Aug-2017 20:01:15
| | [ #40 ] |
|
|
 |
Elite Member  |
Joined: 28-Jul-2012 Posts: 2755
From: Amiga land | | |
|
| @pavlor
G5 Quad ... fedora ppc64 the qemu is qemu-system-ppc -M g3beige -cpu G3
speedometer gave the true ... i say on macbook is 40 in cpu points... G5 on osx not in emulation is more than 90
dnet on g5 is near 35.000.000 keys Last edited by tlosm on 22-Aug-2017 at 08:03 PM. Last edited by tlosm on 22-Aug-2017 at 08:02 PM. Last edited by tlosm on 22-Aug-2017 at 08:01 PM.
_________________ I love Amiga and new hope by AmigaNG A 500 + ; CDTV; CD32; PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB; MacBook Pro Retina I7 2.3ghz; #nomorea-eoninmyhome |
|
Status: Offline |
|
|