Lines Matching refs:npc

338     uint32_t npc;  in inst_ARM_branch_destination()  local
346 npc = addr + 8 + ((int32_t)((inst & 0xffffff) << 8) >> 6); in inst_ARM_branch_destination()
348 npc |= 1; /* indicate ISA is now Thumb */ in inst_ARM_branch_destination()
349 npc |= ((inst >> 23) & 2); /* apply the H bit */ in inst_ARM_branch_destination()
355 *pnpc = npc; in inst_ARM_branch_destination()
362 uint32_t npc; in inst_Thumb_branch_destination() local
366 npc = addr + 4 + ((int32_t)((inst & 0x00ff0000) << 8) >> 23); in inst_Thumb_branch_destination()
367 npc |= 1; in inst_Thumb_branch_destination()
370 npc = addr + 4 + ((int32_t)((inst & 0x07ff0000) << 5) >> 20); in inst_Thumb_branch_destination()
371 npc |= 1; in inst_Thumb_branch_destination()
374 npc = addr + 4 + ((int32_t)(((inst & 0x04000000) << 5) | in inst_Thumb_branch_destination()
379 npc |= 1; in inst_Thumb_branch_destination()
383 npc = addr + 4 + ((int32_t)(((inst & 0x04000000) << 5) | in inst_Thumb_branch_destination()
388 npc |= 1; in inst_Thumb_branch_destination()
393 npc = addr + 4 + ((int32_t)(((inst & 0x04000000) << 5) | in inst_Thumb_branch_destination()
402 npc = addr + 4 + ((((inst & 0x02000000) << 6) | in inst_Thumb_branch_destination()
404 npc |= 1; in inst_Thumb_branch_destination()
409 *pnpc = npc; in inst_Thumb_branch_destination()
416 uint64_t npc; in inst_A64_branch_destination() local
421 npc = addr + ((int32_t)((inst & 0x00ffffe0) << 8) >> 11); in inst_A64_branch_destination()
424 npc = addr + ((int32_t)((inst & 0x03ffffff) << 6) >> 4); in inst_A64_branch_destination()
427 npc = addr + ((int32_t)((inst & 0x00ffffe0) << 8) >> 11); in inst_A64_branch_destination()
430 npc = addr + ((int32_t)((inst & 0x0007ffe0) << 13) >> 16); in inst_A64_branch_destination()
435 *pnpc = npc; in inst_A64_branch_destination()