Project

General

Profile

Actions

Emulator Issues #1889

closed

MAP_32BIT not available in OSX, 32Bit Addressing breaks OSX

Added by jettawu over 14 years ago.

Status:
Fixed
Priority:
Low
Assignee:
Category:
JIT
% Done:

0%

Operating system:
OS X
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
Yes
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. Compile svn revision 4756 on OSX 10.6 using instructions from wiki to
    get dev environment set up (see comment from celgil near the bottom),
    modifying SConstruct according to mailiam's comment on Nov 10 and the
    command scons osx=64cocoa nowx=true
  2. Create configuration in ~/Library/Application
    Support/Dolphin/User/Config/ (my config is attached)
  3. Run DolphinNoGUI with a game iso.

What is the expected output? What do you see instead?
The game should run, but instead it crashes. Output:

$ ./DolphinNoGUI ~/new_mario_bros.iso
58:20:797 N[BOOT]: Loading Settings from ./User/Config/Dolphin.ini
58:21:494 W[EXI]: No memory card found. Will create new.
58:21:520 W[EXI]: No memory card found. Will create new.
58:21:934 N[BOOT]: Booting /Users/mwu/new_mario_bros.iso
58:22:005 N[OSREPORT]: 81200614->81300000|
Apploader Initialized.
58:22:005 N[OSREPORT]: 81200630->81300000| This Apploader built Jun 22 2009
18:54:04 for RVL
58:23:031 N[PowerPC]: Flush Instruction Cache! ICE=0
58:23:032 N[PowerPC]: Instruction Cache Enable (HID0.ICE) = 1
58:24:468 W[Video]: Failed to get video for this frame
58:26:651 W[COMMON]: IsDirectory: stat failed on : No such file or
directory
58:26:721 W[Video]: Failed to get video for this frame
58:26:857 W[WII_IPC_DVD]: DVDLowUnencryptedRead: trying to read out of
bounds @ 460a0000
58:26:857 W[WII_IPC_DVD]: DVDLowRequestError status = 0x00052100
58:26:858 W[WII_IPC_DVD]: DVDLowRequestError status = 0x00052000
58:26:858 W[WII_IPC_ES]: IOCTL_ES_DIGETTICKETVIEW: this looks really
wrong...
58:26:859 W[WII_IPC_ES]: IOCTL_ES_GETCONSUMPTION:0
58:26:939 W[WII_IPC_FILEIO]: FileIO: Open failed - File doesn't exist
./User/Wii/title/00000001/00000002/data/play_rec.dat
58:26:985 E[WII_IPC_DVD]: DVDLowReadDiskBca
58:26:993 W[WII_IPC_DVD]: unimplemented cmd 0x00000095 (Buffer 0x00395d60,
0x20)
58:26:993 W[WII_IPC_DVD]: unimplemented cmd 0x00000096 (Buffer 0x00395d80,
0x20)
58:26:995 W[WII_IPC_FILEIO]: result = FS_RESULT_EXISTS
Segmentation fault

What version of the product are you using? On what operating system?
revision 4756

Please provide any additional information below.
Turning the JIT option "UseDynarec" off prevents a crash, but of course, it
runs very slowly.


Related issues 1 (0 open1 closed)

Has duplicate Emulator - Emulator Issues #3281: [OSX] Hangs up in endless Messageboxes on starting Emulation "WriteRest: op out of range"Duplicate

Actions
Actions #1

Updated by jettawu over 14 years ago

For completeness, I'll note that I was testing against New Super Mario Brothers Wii,
and I have verified that Dolphin in windows (also revision 4756) can load and run the
iso properly (dual boot system) with comparable settings.

Actions #2

Updated by jettawu over 14 years ago

Oh, and OS X builds a crash report to send to Apple. The contents of which are attached
here. Not sure how much it helps.

Actions #3

Updated by ChaosCode over 14 years ago

Not sure what dev handles osx issues.

Actions #4

Updated by tmator over 14 years ago

  • Status changed from New to Accepted

jit crash but jittest works fine

Actions #5

Updated by Sonicadvance1 about 14 years ago

  • Category set to jit
  • Issue type set to Bug
  • Relates to performance set to Yes
  • Operating system OS X added

This is due to the LoadStore parts of the cores, now applicable to both JIT and
JITIL. Currently these parts of the core are disabled, but games that rely on them
heavily (Ikaruga) will run VERY slowly. Only way to fix them is to make sure the code
generated by the cores are 16bit aligned, which is a requirement that OSX has.

Actions #6

Updated by Sonicadvance1 about 14 years ago

  • Priority set to Low

Right, I haven't updated this in a while. A while ago, it was found it wasn't
destroying the 16bit alignment at all. This error is due to MAP_32BIT not available
in OSX, so all of the casts from 64bit pointers to 32bit pointers fail because we are
using regular 64bit addressing. I've tried working on the core with a little bit of
success, but not much. This is over my head, I can't work on it.

Actions #7

Updated by Sonicadvance1 about 14 years ago

  • Status changed from Accepted to Work started

Obviously started this. Only thing I'm currently failing to fix is Optimize
Quantizers, and I'm failing at that just because I'm a horrible programmer.

Actions #8

Updated by BhaaL over 13 years ago

Issue 3281 has been merged into this issue.

Actions #9

Updated by soren.jorvang over 13 years ago

  • Status changed from Work started to Fixed

Worked around by r6792.

Actions

Also available in: Atom PDF