{"action":"created","issue":{"url":"https://api.github.com/repos/mupen64plus/mupen64plus-core/issues/506","repository_url":"https://api.github.com/repos/mupen64plus/mupen64plus-core","labels_url":"https://api.github.com/repos/mupen64plus/mupen64plus-core/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/mupen64plus/mupen64plus-core/issues/506/comments","events_url":"https://api.github.com/repos/mupen64plus/mupen64plus-core/issues/506/events","html_url":"https://github.com/mupen64plus/mupen64plus-core/issues/506","id":285001925,"node_id":"MDU6SXNzdWUyODUwMDE5MjU=","number":506,"title":"PowerPC Big Endian issue????","user":{"login":"gianlucarenzi1971","id":34919438,"node_id":"MDQ6VXNlcjM0OTE5NDM4","avatar_url":"https://avatars0.githubusercontent.com/u/34919438?v=4","gravatar_id":"","url":"https://api.github.com/users/gianlucarenzi1971","html_url":"https://github.com/gianlucarenzi1971","followers_url":"https://api.github.com/users/gianlucarenzi1971/followers","following_url":"https://api.github.com/users/gianlucarenzi1971/following{/other_user}","gists_url":"https://api.github.com/users/gianlucarenzi1971/gists{/gist_id}","starred_url":"https://api.github.com/users/gianlucarenzi1971/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianlucarenzi1971/subscriptions","organizations_url":"https://api.github.com/users/gianlucarenzi1971/orgs","repos_url":"https://api.github.com/users/gianlucarenzi1971/repos","events_url":"https://api.github.com/users/gianlucarenzi1971/events{/privacy}","received_events_url":"https://api.github.com/users/gianlucarenzi1971/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":53,"created_at":"2017-12-28T22:35:02Z","updated_at":"2018-09-28T20:36:06Z","closed_at":null,"author_association":"NONE","body":"Hello mupen64 developers,\r\n\r\nI am sorry for noise, but I would like to know if MUPEN64PLUS has never ran on a big endian machine like mine PPC790MP Quad Core running @ 2.5Ghz.\r\nActually I tried to compile from sources (git clone) and it compile without any issue (only Glide64 has an error for SSE [this architecture has Altivec]). I workedaround this modifying the include at the very beginnig in:\r\n```\r\n #ifndef NOSSE\r\n// See https://stackoverflow.com/a/22291538\r\n#if defined(_MSC_VER)\r\n/* Microsoft C/C++-compatible compiler */\r\n#include <intrin.h>\r\n#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))\r\n/* GCC-compatible compiler, targeting x86/x86-64 */\r\n#include <x86intrin.h>\r\n#elif defined(__GNUC__) && defined(__ARM_NEON__)\r\n/* GCC-compatible compiler, targeting ARM with NEON */\r\n#include <arm_neon.h>\r\n#elif defined(__GNUC__) && defined(__IWMMXT__)\r\n/* GCC-compatible compiler, targeting ARM with WMMX */\r\n#include <mmintrin.h>\r\n#elif (defined(__GNUC__) || defined(__xlC__)) && (defined(__VEC__) || defined(__ALTIVEC__))\r\n/* XLC or GCC-compatible compiler, targeting PowerPC with VMX/VSX */\r\n#include <altivec.h>\r\n#elif defined(__GNUC__) && defined(__SPE__)\r\n/* GCC-compatible compiler, targeting PowerPC with SPE */\r\n#include <spe.h>\r\n#endif\r\n```\r\nand it looks like neither GCC nor Linker gives me any error. Anyway I wish to use Rice Video Driver which gave me no warning on compiling...\r\n\r\nAfter launching test I see:\r\n```\r\n./mupen64plus m64p_test_rom.v64\r\n __  __                         __   _  _   ____  _            \r\n|  \\/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \\| |_   _ ___\r\n| |\\/| | | | | '_ \\ / _ \\ '_ \\| '_ \\| || |_| |_) | | | | / __| \r\n| |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \\__ \\ \r\n|_|  |_|\\__,_| .__/ \\___|_| |_|\\___/   |_| |_|   |_|\\__,_|___/ \r\n             |_|         http://code.google.com/p/mupen64plus/ \r\nMupen64Plus Console User-Interface Version 2.5.0\r\n\r\nUI-Console: attached to core library 'Mupen64Plus Core' version 2.5.1\r\nCore: Using full mem base\r\nCore: Goodname: Mupen64Plus Demo by Marshallh (GPL)\r\nCore: Name: Mupen64Plus        \r\nCore: MD5: DBF04773EC2B8ADF8A94DB7E3E461138\r\nCore: CRC: DDBA4DE5 B107004A\r\nCore: Imagetype: .v64 (byteswapped)\r\nCore: Rom size: 1048576 bytes (or 1 Mb or 8 Megabits)\r\nCore: Version: 1444\r\nCore: Manufacturer: 0\r\nCore: Country: Demo\r\nUI-Console Status: Cheat codes disabled.\r\nUI-Console: using Video plugin: 'Mupen64Plus OpenGL Video Plugin by Rice' v2.5.0\r\nUI-Console: using Audio plugin: 'Mupen64Plus SDL Audio Plugin' v2.5.0\r\nInput: Using auto-config file at: 'InputAutoCfg.ini'\r\nUI-Console: using Input plugin: 'Mupen64Plus SDL Input Plugin' v2.5.0\r\nUI-Console: using RSP plugin: 'Hacktarux/Azimer High-Level Emulation RSP Plugin' v2.5.0\r\nInput: 0 SDL joysticks were found.\r\nInput: N64 Controller #1: Forcing default keyboard configuration\r\nInput: Using auto-config file at: 'InputAutoCfg.ini'\r\nInput: 1 controller(s) found, 1 plugged in and usable in the emulator\r\nInput Warning: Couldn't open rumble support for joystick #1\r\nInput Warning: Couldn't open rumble support for joystick #2\r\nInput Warning: Couldn't open rumble support for joystick #3\r\nInput Warning: Couldn't open rumble support for joystick #4\r\nInput: Mupen64Plus SDL Input Plugin version 2.5.0 initialized.\r\nRSP: RSP Fallback disabled !\r\nCore: Game controller 0 (Standard controller) has nothing plugged in\r\nCore Warning: Unknown CIC type (000000A316ADC55A)! using CIC 6102.\r\nCore: Using CIC type X102\r\nVideo: Disabled SSE processing.\r\nVideo: Found ROM 'Mupen64Plus', CRC ddba4de5b107004a-00\r\nVideo: Initializing OpenGL Device Context.\r\nCore: Setting 32-bit video mode: 640x480\r\nVideo Warning: Failed to set GL_SWAP_CONTROL to 0. (it's 1)\r\nVideo Warning: Failed to set GL_BUFFER_SIZE to 32. (it's 24)\r\nVideo Warning: Failed to set GL_DEPTH_SIZE to 16. (it's 24)\r\nVideo: Using OpenGL: Gallium 0.4 on AMD RV730 (DRM 2.43.0 / 4.4.0-104-powerpc64-s - 3.0 Mesa 17.0.7 : X.Org\r\nAudio: Using resampler trivial\r\nAudio: Initializing SDL audio subsystem...\r\nInput Warning: Couldn't open rumble support for joystick #1\r\nInput Warning: Couldn't open rumble support for joystick #2\r\nInput Warning: Couldn't open rumble support for joystick #3\r\nInput Warning: Couldn't open rumble support for joystick #4\r\nCore: Initializing 4 RDRAM modules for a total of 8 MB\r\nCore: Starting R4300 emulator: Cached Interpreter\r\nCore Error: reserved opcode: A400004C:70A4083C\r\nCore: R4300 emulator finished.\r\nCore Status: Rom closed.\r\n```\r\nIt looks like an endianness issue to me. As looking at mips_instructions.def I can't see any endianess switch or similar. Is it suppose to be run in the BigEndian  world?\r\n\r\nIt is a pity if for a simple stuff like endianness this code cannot be run in a BE Arch...\r\n\r\nLet me know please. If you point me where I can check for any hook just to run the code in this arch, I would be glad to re-write some pieces of code... Writing code is my full-time job.\r\n\r\nMy machine is a: Apple G5 Quad Core @ 2.5Ghz w/  8192 Mb and it is running Linux Ubuntu 16.04 LTS with gcc 6 and an ATI VideoCard PCI Express 16x ATI Radeon HD4670 (not apple powerpc compatible during bootloader) as the log states...\r\n\r\nBest regards,\r\nGianluca Renzi\r\n"},"comment":{"url":"https://api.github.com/repos/mupen64plus/mupen64plus-core/issues/comments/425558477","html_url":"https://github.com/mupen64plus/mupen64plus-core/issues/506#issuecomment-425558477","issue_url":"https://api.github.com/repos/mupen64plus/mupen64plus-core/issues/506","id":425558477,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTU1ODQ3Nw==","user":{"login":"chzigotzky","id":43322007,"node_id":"MDQ6VXNlcjQzMzIyMDA3","avatar_url":"https://avatars2.githubusercontent.com/u/43322007?v=4","gravatar_id":"","url":"https://api.github.com/users/chzigotzky","html_url":"https://github.com/chzigotzky","followers_url":"https://api.github.com/users/chzigotzky/followers","following_url":"https://api.github.com/users/chzigotzky/following{/other_user}","gists_url":"https://api.github.com/users/chzigotzky/gists{/gist_id}","starred_url":"https://api.github.com/users/chzigotzky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chzigotzky/subscriptions","organizations_url":"https://api.github.com/users/chzigotzky/orgs","repos_url":"https://api.github.com/users/chzigotzky/repos","events_url":"https://api.github.com/users/chzigotzky/events{/privacy}","received_events_url":"https://api.github.com/users/chzigotzky/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T20:36:06Z","updated_at":"2018-09-28T20:36:06Z","author_association":"NONE","body":"> You're right that there is some kind of problem in the core. The debugging information that you posted above is very useful and shows some obvious differences in basic values which should match. I'll start digging through the code and see if I can find further tests to run, or problems which could cause the mismatch.\r\n\r\nHello Richard42,\r\n\r\nMany thanks for your answer. :-) I am looking forward to testing new code. :-)\r\n\r\nCheers,\r\nChristian\r\n\r\n"}}
{"actor":{"display_login":"chzigotzky"}}