VICE on Intel Macs [message #142825] |
Mon, 21 August 2006 15:15 |
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 #142827 is a reply to message #142825] |
Mon, 21 August 2006 18:43 |
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?
|
|
|
|
|
|