~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/emu/cpu/powerpc/ppc.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1741
1741
                case CPUINFO_INT_CONTEXT_SIZE:                                  info->i = sizeof(ppc);                                  break;
1742
1742
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 1;                                                    break;
1743
1743
                case CPUINFO_INT_DEFAULT_IRQ_VECTOR:                    info->i = 0;                                                    break;
1744
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
1744
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
1745
1745
                case CPUINFO_INT_CLOCK_MULTIPLIER:                              info->i = 1;                                                    break;
1746
1746
                case CPUINFO_INT_CLOCK_DIVIDER:                                 info->i = 1;                                                    break;
1747
1747
                case CPUINFO_INT_MIN_INSTRUCTION_BYTES:                 info->i = 4;                                                    break;
1814
1814
                case CPUINFO_PTR_INSTRUCTION_COUNTER:                   info->icount = &ppc_icount;                             break;
1815
1815
 
1816
1816
                /* --- the following bits of info are returned as NULL-terminated strings --- */
1817
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "PPC403");                              break;
1818
 
                case CPUINFO_STR_CORE_FAMILY:                                   strcpy(info->s, "PowerPC");                             break;
1819
 
                case CPUINFO_STR_CORE_VERSION:                                  strcpy(info->s, "1.0");                                 break;
1820
 
                case CPUINFO_STR_CORE_FILE:                                             strcpy(info->s, __FILE__);                              break;
1821
 
                case CPUINFO_STR_CORE_CREDITS:                                  strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
 
1817
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "PPC403");                              break;
 
1818
                case DEVINFO_STR_FAMILY:                                        strcpy(info->s, "PowerPC");                             break;
 
1819
                case DEVINFO_STR_VERSION:                                       strcpy(info->s, "1.0");                                 break;
 
1820
                case DEVINFO_STR_SOURCE_FILE:                                           strcpy(info->s, __FILE__);                              break;
 
1821
                case DEVINFO_STR_CREDITS:                                       strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
1822
1822
 
1823
1823
                case CPUINFO_STR_FLAGS:                                                 strcpy(info->s, " ");                                   break;
1824
1824
 
1872
1872
        {
1873
1873
                /* --- the following bits of info are returned as 64-bit signed integers --- */
1874
1874
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 8;                                                    break;
1875
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
1875
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
1876
1876
                case CPUINFO_INT_REGISTER + PPC_EXIER:                  info->i = EXIER;                                                break;
1877
1877
                case CPUINFO_INT_REGISTER + PPC_EXISR:                  info->i = EXISR;                                                break;
1878
1878
 
1884
1884
                case CPUINFO_FCT_EXECUTE:                                               info->execute = CPU_EXECUTE_NAME(ppc403);                       break;
1885
1885
 
1886
1886
                /* --- the following bits of info are returned as NULL-terminated strings --- */
1887
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "PPC403");                              break;
 
1887
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "PPC403");                              break;
1888
1888
                case CPUINFO_STR_REGISTER + PPC_EXIER:                  sprintf(info->s, "EXIER: %08X", EXIER); break;
1889
1889
                case CPUINFO_STR_REGISTER + PPC_EXISR:                  sprintf(info->s, "EXISR: %08X", EXISR); break;
1890
1890
 
1898
1898
        {
1899
1899
                /* --- the following bits of info are returned as 64-bit signed integers --- */
1900
1900
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 5;                                                    break;
1901
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
1901
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
1902
1902
 
1903
1903
                case CPUINFO_INT_DATABUS_WIDTH_PROGRAM: info->i = 64;                                   break;
1904
1904
                case CPUINFO_INT_ADDRBUS_WIDTH_PROGRAM: info->i = 32;                                   break;
1918
1918
                case CPUINFO_FCT_TRANSLATE:                                             info->translate = ppc_translate_address_cb;     break;
1919
1919
 
1920
1920
                /* --- the following bits of info are returned as NULL-terminated strings --- */
1921
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "PPC603");                              break;
 
1921
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "PPC603");                              break;
1922
1922
                case CPUINFO_STR_REGISTER + PPC_DEC:                    sprintf(info->s, "DEC: %08X", read_decrementer()); break;
1923
1923
 
1924
1924
                default:                                                                                CPU_GET_INFO_CALL(ppc);                         break;
1945
1945
        {
1946
1946
                /* --- the following bits of info are returned as 64-bit signed integers --- */
1947
1947
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 5;                                                    break;
1948
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
1948
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
1949
1949
                case CPUINFO_INT_REGISTER + PPC_IBR:                    info->i = ppc.ibr;                                              break;
1950
1950
 
1951
1951
                case CPUINFO_INT_DATABUS_WIDTH_PROGRAM: info->i = 64;                                   break;
1963
1963
                case CPUINFO_FCT_TRANSLATE:                                             info->translate = ppc_translate_address_cb;     break;
1964
1964
 
1965
1965
                /* --- the following bits of info are returned as NULL-terminated strings --- */
1966
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "PPC602");                              break;
 
1966
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "PPC602");                              break;
1967
1967
                case CPUINFO_STR_REGISTER + PPC_IBR:                    sprintf(info->s, "IBR: %08X", ppc.ibr); break;
1968
1968
 
1969
1969
                default:                                                                                CPU_GET_INFO_CALL(ppc);                         break;
1990
1990
        {
1991
1991
                /* --- the following bits of info are returned as 64-bit signed integers --- */
1992
1992
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 5;                                                    break;
1993
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
1993
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
1994
1994
 
1995
1995
                case CPUINFO_INT_DATABUS_WIDTH_PROGRAM: info->i = 64;                                   break;
1996
1996
                case CPUINFO_INT_ADDRBUS_WIDTH_PROGRAM: info->i = 32;                                   break;
2006
2006
                case CPUINFO_FCT_READOP:                                                info->readop = CPU_GET_READOP_NAME(ppc);                                break;
2007
2007
 
2008
2008
                /* --- the following bits of info are returned as NULL-terminated strings --- */
2009
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "MPC8240");                             break;
 
2009
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "MPC8240");                             break;
2010
2010
 
2011
2011
                default:                                                                                CPU_GET_INFO_CALL(ppc);                         break;
2012
2012
        }
2031
2031
        {
2032
2032
                /* --- the following bits of info are returned as 64-bit signed integers --- */
2033
2033
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 5;                                                    break;
2034
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
2034
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
2035
2035
 
2036
2036
                case CPUINFO_INT_DATABUS_WIDTH_PROGRAM: info->i = 64;                                   break;
2037
2037
                case CPUINFO_INT_ADDRBUS_WIDTH_PROGRAM: info->i = 32;                                   break;
2047
2047
                case CPUINFO_FCT_READOP:                                                info->readop = CPU_GET_READOP_NAME(ppc);                                break;
2048
2048
 
2049
2049
                /* --- the following bits of info are returned as NULL-terminated strings --- */
2050
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "PPC601");                              break;
 
2050
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "PPC601");                              break;
2051
2051
 
2052
2052
                default:                                                                                CPU_GET_INFO_CALL(ppc);                         break;
2053
2053
        }
2072
2072
        {
2073
2073
                /* --- the following bits of info are returned as 64-bit signed integers --- */
2074
2074
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 5;                                                    break;
2075
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
2075
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
2076
2076
 
2077
2077
                case CPUINFO_INT_DATABUS_WIDTH_PROGRAM: info->i = 64;                                   break;
2078
2078
                case CPUINFO_INT_ADDRBUS_WIDTH_PROGRAM: info->i = 32;                                   break;
2088
2088
                case CPUINFO_FCT_READOP:                                                info->readop = CPU_GET_READOP_NAME(ppc);                                break;
2089
2089
 
2090
2090
                /* --- the following bits of info are returned as NULL-terminated strings --- */
2091
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "PPC604");                              break;
 
2091
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "PPC604");                              break;
2092
2092
 
2093
2093
                default:                                                                                CPU_GET_INFO_CALL(ppc);                         break;
2094
2094
        }