Lines Matching refs:npc
322 uint32_t npc; in inst_ARM_branch_destination() local
330 npc = addr + 8 + ((int32_t)((inst & 0xffffff) << 8) >> 6); in inst_ARM_branch_destination()
332 npc |= 1; /* indicate ISA is now Thumb */ in inst_ARM_branch_destination()
333 npc |= ((inst >> 23) & 2); /* apply the H bit */ in inst_ARM_branch_destination()
339 *pnpc = npc; in inst_ARM_branch_destination()
346 uint32_t npc; in inst_Thumb_branch_destination() local
350 npc = addr + 4 + ((int32_t)((inst & 0x00ff0000) << 8) >> 23); in inst_Thumb_branch_destination()
351 npc |= 1; in inst_Thumb_branch_destination()
354 npc = addr + 4 + ((int32_t)((inst & 0x07ff0000) << 5) >> 20); in inst_Thumb_branch_destination()
355 npc |= 1; in inst_Thumb_branch_destination()
358 npc = addr + 4 + ((int32_t)(((inst & 0x04000000) << 5) | in inst_Thumb_branch_destination()
363 npc |= 1; in inst_Thumb_branch_destination()
367 npc = addr + 4 + ((int32_t)(((inst & 0x04000000) << 5) | in inst_Thumb_branch_destination()
372 npc |= 1; in inst_Thumb_branch_destination()
377 npc = addr + 4 + ((int32_t)(((inst & 0x04000000) << 5) | in inst_Thumb_branch_destination()
386 npc = addr + 4 + ((((inst & 0x02000000) << 6) | in inst_Thumb_branch_destination()
388 npc |= 1; in inst_Thumb_branch_destination()
393 *pnpc = npc; in inst_Thumb_branch_destination()
400 uint64_t npc; in inst_A64_branch_destination() local
404 npc = addr + ((int32_t)((inst & 0x00ffffe0) << 8) >> 11); in inst_A64_branch_destination()
407 npc = addr + ((int32_t)((inst & 0x03ffffff) << 6) >> 4); in inst_A64_branch_destination()
410 npc = addr + ((int32_t)((inst & 0x00ffffe0) << 8) >> 11); in inst_A64_branch_destination()
413 npc = addr + ((int32_t)((inst & 0x0007ffe0) << 13) >> 16); in inst_A64_branch_destination()
418 *pnpc = npc; in inst_A64_branch_destination()