Re: desmume, any special reqs to run it?

2022-12-12 Thread Anthony J. Bentley
Nam Nguyen writes:
> Here is a diff unbreaking desmume. I am attaching it because it contains
> ^M being removed from an existing patch.
>
> I came across this same issue with my WIP-port of flycast. It has to be
> adapted for immutable userland mappings in 7.2 -current.
>
> Globals are in BSS and are immutable by default. They need to be marked
> as mutable in order for mprotect RWX to work.

Thanks! ok bentley@



Re: desmume, any special reqs to run it?

2022-12-09 Thread Stefan Sperling
On Thu, Dec 08, 2022 at 06:42:51PM -0800, Nam Nguyen wrote:
> Here is a diff unbreaking desmume. I am attaching it because it contains
> ^M being removed from an existing patch.
> 
> I came across this same issue with my WIP-port of flycast. It has to be
> adapted for immutable userland mappings in 7.2 -current.

Ohh! I would be interested in a flycast port :)
 
> This unbreaks the emulator with my testing of Chrono Trigger.

Final Fantasy III and DSLinux are working fine, too.
 
> Feedback and tests are welcome. OK?

ok stsp@



Re: desmume, any special reqs to run it?

2022-12-08 Thread Nam Nguyen
Mike Larkin writes:

> On Sun, Dec 04, 2022 at 05:30:47PM -0700, Anthony J. Bentley wrote:
>> Mikolaj Kucharski writes:
>> > I just wanted to see how Nintendo 3DS emulators work on OpenBSD. Never
>> > played with them before.
>> >
>> > $ desmume some-game-decrypted.3ds
>> > mprotect failed: Operation not permitted
>> > Abort trap (core dumped) 
>> >
>> > I tried with few 3DS files and one CIA file, always the same output
>> > like above. Any tips?
>> 
>> desmume is a DS emulator, not a 3DS emulator. It doesn't support 3DS
>> files or CIA files.
>> 
>> (citra is a 3DS emulator and should be able to handle those files.)
>> 
>> That said, desmume shouldn't crash like that. I'll look into it.
>> 
>
> My money's on wxallowed :)
>
> -ml

Here is a diff unbreaking desmume. I am attaching it because it contains
^M being removed from an existing patch.

I came across this same issue with my WIP-port of flycast. It has to be
adapted for immutable userland mappings in 7.2 -current.

Globals are in BSS and are immutable by default. They need to be marked
as mutable in order for mprotect RWX to work.

I took this fix from syzkaller. see:
https://github.com/google/syzkaller/commit/bc009f82ea71c399f19eef28f115ff5cda7be4ba

flycast had to be patched in three places. see:
https://www.namtsui.com/cgi-bin/cvsweb/ports/emulators/flycast/patches/patch-core_hw_aica_dsp_x64_cpp?rev=1.6=text/x-cvsweb-markup
https://www.namtsui.com/cgi-bin/cvsweb/ports/emulators/flycast/patches/patch-core_hw_arm7_arm7_rec_cpp?rev=1.6=text/x-cvsweb-markup
https://www.namtsui.com/cgi-bin/cvsweb/ports/emulators/flycast/patches/patch-core_hw_sh4_dyna_driver_cpp?rev=1.6=text/x-cvsweb-markup

This unbreaks the emulator with my testing of Chrono Trigger.

Feedback and tests are welcome. OK?



desmume.diff
Description: desmume.diff


Re: desmume, any special reqs to run it?

2022-12-05 Thread Mike Larkin
On Sun, Dec 04, 2022 at 05:30:47PM -0700, Anthony J. Bentley wrote:
> Mikolaj Kucharski writes:
> > I just wanted to see how Nintendo 3DS emulators work on OpenBSD. Never
> > played with them before.
> >
> > $ desmume some-game-decrypted.3ds
> > mprotect failed: Operation not permitted
> > Abort trap (core dumped) 
> >
> > I tried with few 3DS files and one CIA file, always the same output
> > like above. Any tips?
> 
> desmume is a DS emulator, not a 3DS emulator. It doesn't support 3DS
> files or CIA files.
> 
> (citra is a 3DS emulator and should be able to handle those files.)
> 
> That said, desmume shouldn't crash like that. I'll look into it.
> 

My money's on wxallowed :)

-ml



Re: desmume, any special reqs to run it?

2022-12-04 Thread Anthony J. Bentley
Mikolaj Kucharski writes:
> I just wanted to see how Nintendo 3DS emulators work on OpenBSD. Never
> played with them before.
>
> $ desmume some-game-decrypted.3ds
> mprotect failed: Operation not permitted
> Abort trap (core dumped) 
>
> I tried with few 3DS files and one CIA file, always the same output
> like above. Any tips?

desmume is a DS emulator, not a 3DS emulator. It doesn't support 3DS
files or CIA files.

(citra is a 3DS emulator and should be able to handle those files.)

That said, desmume shouldn't crash like that. I'll look into it.



Re: desmume, any special reqs to run it?

2022-12-04 Thread Sable
I don't usually respond on here, but I felt it important to mention, 
there is a better DS emulator in the works, that uses a crapton less 
dependencies than desmume and melonDS.


It currently is specified as rolling release and might not be to your 
standards yet, but I will show you the link, in case any of you are 
interested...


It really only requires a few things, including portaudio, which does in 
fact work with sndio. I have tried it before with it, thanks to one of 
your very kind devs forking portaudio to work with it on a github repo.


Anywho these are the dependencies:

|install libwxgtk3.0-dev portaudio19-dev|

|This is the link:
|

|https://github.com/Hydr8gon/NooDS|

|Its prenounced more like New-DS, I think? A lack of thought might have 
been there...

|

|Btw, as of now, it works mostly good, but it might still be in a beta 
state more or less.

|

|It doesn't require any nds firmware added btw. I do run into a few 
issues, but they aren't common.

|

|As for 3DS emulators, not sure if any are stable enough where they 
don't need extra firmware. My two cents...

|

On 12/04/2022 05:40 PM, Mikolaj Kucharski wrote:

Hi,

I just wanted to see how Nintendo 3DS emulators work on OpenBSD. Never
played with them before.

$ desmume some-game-decrypted.3ds
mprotect failed: Operation not permitted
Abort trap (core dumped)

I tried with few 3DS files and one CIA file, always the same output
like above. Any tips?


OpenBSD 7.2-current (GENERIC.MP) #859: Sat Nov 26 11:10:04 MST 2022
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP


# pkg_info -qI desmume
desmume-0.9.11p10





desmume, any special reqs to run it?

2022-12-04 Thread Mikolaj Kucharski
Hi,

I just wanted to see how Nintendo 3DS emulators work on OpenBSD. Never
played with them before.

$ desmume some-game-decrypted.3ds
mprotect failed: Operation not permitted
Abort trap (core dumped) 

I tried with few 3DS files and one CIA file, always the same output
like above. Any tips?


OpenBSD 7.2-current (GENERIC.MP) #859: Sat Nov 26 11:10:04 MST 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP


# pkg_info -qI desmume
desmume-0.9.11p10

-- 
Regards,
 Mikolaj