ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/main_unix.cpp
(Generate patch)

Comparing SheepShaver/src/Unix/main_unix.cpp (file contents):
Revision 1.28 by gbeauche, 2004-01-18T22:59:06Z vs.
Revision 1.29 by gbeauche, 2004-01-31T11:10:49Z

# Line 460 | Line 460 | int main(int argc, char **argv)
460                          // Parse line
461                          int i;
462                          char value[256];
463 <                        if (sscanf(line, "cpu : %s", value) == 1) {
463 >                        if (sscanf(line, "cpu : %[0-9A-Za-a]", value) == 1) {
464                                  if (strcmp(value, "601") == 0)
465                                          PVR = 0x00010000;
466                                  else if (strcmp(value, "603") == 0)
# Line 481 | Line 481 | int main(int argc, char **argv)
481                                          PVR = 0x00320000;
482                                  else if (strcmp(value, "860") == 0)
483                                          PVR = 0x00500000;
484 +                                else if (strcmp(value, "7400") == 0)
485 +                                        PVR = 0x80000000;
486 +                                else if (strcmp(value, "7410") == 0)
487 +                                        PVR = 0x800c0000;
488                                  else
489                                          printf("WARNING: Unknown CPU type '%s', assuming 604\n", value);
490                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines