Skip to contentSkip to conversation

There is a bug in ppc_prep.c?

Qemu-devel Tero Kaarlela 2 participants 2 messages May 22, 2005 – May 23, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I just browsed CVS repository and found following from ppc_prep.c:

/* Check LE mode */

       if (val & 0x02) {
           printf("Little Endian mode isn't supported (yet ?)\n");
           abort();

shouldnt this be ie:

/* Check LE mode */

       if (val & 0x02) {
           printf("Switching to Little Endian mode...");
          /* abort(); */

?

Tero Kaarlela

#1 lore raw
Quoted 13 lines · Tero Kaarlela

Hi,

I just browsed CVS repository and found following from ppc_prep.c:

/* Check LE mode */

        if (val & 0x02) {
            printf("Little Endian mode isn't supported (yet ?)\n");
            abort();

shouldnt this be ie:

Quoted 7 lines

/* Check LE mode */

        if (val & 0x02) {
            printf("Switching to Little Endian mode...");
           /* abort(); */

?

This is supposed to be needed for endian mode switch. However, we have seen with OS/2 that it would be needed to do nothing when this bit is set, then I'd prefer to do nothing: that only means, imho, that we don't know what need to be swapped. Then I'd better not have the feature than do sthing that I know is a bug (ie does not correspond to platform specification).
Then, I did let this untouched in the repository.

Signature · 2 lines
J. Mayer <[email protected]>
Never organized