On Fri, 01 Feb 2008 00:45:50 +0100, Gilles <> wrote:
>Hello all, I'm using the powerpc-eabispe gcc version 3.4.4 and I want
>to initialize the decrenenter with the following code:
gcc is not imported. The assembler (binutils) counts.
>asm volatile ("mthid0 %[HID0]"::[HID0]"r"(my_SPR_HID0VAL));
This is a 5554 specific registers. You might try using -mcpu=8540
in the commanline.
>asm volatile ("mtspr 1008, r0");
> a920: 7c 10 fb a6 mtdbsr r0
Did you lookup the real opcode ? Don't trust the disassembler here.
I use 3.4.4 gcc and 2.16.1 binutils and have no problem writing hid0
the above way.
--
42Bastian
Do not email to
, it's a spam-only account :-)
Use <same-name>@monlynx.de instead !