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 
Return to the default flat view Create a new topic Submit Reply
VICE on Intel Macs [message #142825] Mon, 21 August 2006 15:15 Go to previous message
MagerValp is currently offline  MagerValp
Messages: 847
Registered: April 2012
Karma:
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/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: Mon Apr 29 03:47:22 EDT 2024

Total time taken to generate the page: 0.01240 seconds