~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/emu/cpu/arm7/arm7thmb.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1279
1279
            SET_REGISTER(cpustate, 13, GET_REGISTER(cpustate, 13) + 4);
1280
1280
        }
1281
1281
    }
1282
 
    R15 = READ32(GET_REGISTER(cpustate, 13)) & ~1;
 
1282
    UINT32 addr = READ32(GET_REGISTER(cpustate, 13));
 
1283
    // in v4T, bit 0 is ignored.  v5 and later, it's an ARM/Thumb flag like the BX instruction
 
1284
    if (cpustate->archRev < 5)
 
1285
    {
 
1286
        R15 = addr & ~1;
 
1287
    }
 
1288
    else
 
1289
    {
 
1290
        if (addr & 1)
 
1291
        {
 
1292
            addr &= ~1;
 
1293
        }
 
1294
        else
 
1295
        {
 
1296
            SET_CPSR(GET_CPSR & ~T_MASK);
 
1297
            if (addr & 2)
 
1298
            {
 
1299
                addr += 2;
 
1300
            }
 
1301
        }
 
1302
 
 
1303
        R15 = addr;
 
1304
    }
1283
1305
    SET_REGISTER(cpustate, 13, GET_REGISTER(cpustate, 13) + 4);
1284
1306
 
1285
1307
}