Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore Emulation » VICE on Intel Macs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
VICE on Intel Macs [message #142825] Mon, 21 August 2006 15:15 Go to next message
MagerValp is currently offline  MagerValp
Messages: 847
Registered: April 2012
Karma: 0
Senior Member
I'm trying to compile VICE for my Macbook, and it dies with:

soundcoreaudio.c: In function 'coreaudio_converter_inputproc':
soundcoreaudio.c:73: error: unknown register name 'cr0' in 'asm'
make[3]: *** [soundcoreaudio.o] Error 1

The offending snippet appears to be a spot of PPC asm:

static inline void atomic_add(atomic_int_t * addr, int val)
{
register int tmp;
asm volatile(" lwarx %0,0,%2 \n\t" /* load value & reserve */
" addc %0,%0,%3 \n\t" /* add <val> */
" stwcx. %0,0,%2 \n\n" /* store new value */
" bne- $-12" /* check if store was successful */
: "=&r"(tmp), "=m"(addr)
: "r"(addr), "r"(val), "m"(addr)
: "cr0"
);
}

Since this is I/O code, I'm guessing that it's there for a reason.
Unfortunately it's uncommented, but I don't know x86 asm so I wouldn't
know what to replace it with anyway.

Any suggestions?

--
___ . . . . . + . . o
_|___|_ + . + . + . Per Olofsson, arkadspelare
o-o . . . o + MagerValp@cling.gu.se
- + + . http://www.cling.gu.se/~cl3polof/
Re: VICE on Intel Macs [message #142826 is a reply to message #142825] Mon, 21 August 2006 18:39 Go to previous messageGo to next message
Andreas Boose is currently offline  Andreas Boose
Messages: 46
Registered: September 2003
Karma: 0
Member
On 21 Aug 2006 21:15:00 +0200, MagerValp <MagerValp@cling.gu.se>
wrote:

> Since this is I/O code, I'm guessing that it's there for a reason.
> Unfortunately it's uncommented, but I don't know x86 asm so I wouldn't
> know what to replace it with anyway.

These are some atomic operations which require the use of assembler.

You may download this fix written by Christian Vogelgsang to compile
VICE 1.19 on Intel Macs:

http://www.viceteam.org/online/soundcoreaudio-intelmacfix.di ff.gz

MfG Andreas
Re: VICE on Intel Macs [message #142827 is a reply to message #142825] Mon, 21 August 2006 18:43 Go to previous messageGo to next message
Patryk 'Silver Dream  is currently offline  Patryk 'Silver Dream
Messages: 737
Registered: July 2003
Karma: 0
Senior Member
MagerValp wrote:
> I'm trying to compile VICE for my Macbook, and it dies with:
>
> soundcoreaudio.c: In function 'coreaudio_converter_inputproc':
> soundcoreaudio.c:73: error: unknown register name 'cr0' in 'asm'

PPC asm.. oops.

[...]

>
> Any suggestions?
>

Configure temporarily different sound subsystem like SDL for example?
Re: VICE on Intel Macs [message #142828 is a reply to message #142827] Tue, 22 August 2006 09:05 Go to previous messageGo to next message
MagerValp is currently offline  MagerValp
Messages: 847
Registered: April 2012
Karma: 0
Senior Member
>>>> > "s" == silverdr <silverdr@inet.remove.it.pl> writes:

s> Configure temporarily different sound subsystem like SDL for
s> example?

I did compile --with-sdl, but for some reason it still tried to
compile the CoreAudio driver.

--
___ . . . . . + . . o
_|___|_ + . + . + . Per Olofsson, arkadspelare
o-o . . . o + MagerValp@cling.gu.se
- + + . http://www.cling.gu.se/~cl3polof/
Re: VICE on Intel Macs [message #142829 is a reply to message #142826] Tue, 22 August 2006 09:15 Go to previous messageGo to next message
MagerValp is currently offline  MagerValp
Messages: 847
Registered: April 2012
Karma: 0
Senior Member
>>>> > "AB" == Andreas Boose <andreas.boose@viceteam.org> writes:

AB> You may download this fix written by Christian Vogelgsang to
AB> compile VICE 1.19 on Intel Macs:

AB> http://www.viceteam.org/online/soundcoreaudio-intelmacfix.di ff.gz

That did the trick, thanks!

--
___ . . . . . + . . o
_|___|_ + . + . + . Per Olofsson, arkadspelare
o-o . . . o + MagerValp@cling.gu.se
- + + . http://www.cling.gu.se/~cl3polof/
Re: VICE on Intel Macs [message #142833 is a reply to message #142828] Wed, 23 August 2006 20:04 Go to previous message
Anonymous
Karma:
Originally posted by: nlcw

Hi,

Maybe there should be a link on the Vice website for "fixes".

nlcw.

"MagerValp" <MagerValp@cling.gu.se> wrote in message
news:p14mz9wgbti.fsf@hal.cling.gu.se...
>>>> >> "s" == silverdr <silverdr@inet.remove.it.pl> writes:
>
> s> Configure temporarily different sound subsystem like SDL for
> s> example?
>
> I did compile --with-sdl, but for some reason it still tried to
> compile the CoreAudio driver.
>
> --
> ___ . . . . . + . . o
> _|___|_ + . + . + . Per Olofsson, arkadspelare
> o-o . . . o + MagerValp@cling.gu.se
> - + + . http://www.cling.gu.se/~cl3polof/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Hoxs64 v1.0.4.8 has been released
Next Topic: Help with the CRT creation
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Mar 29 03:02:26 EDT 2024

Total time taken to generate the page: 0.04404 seconds