Is there a way to change the program counter from within an UC_HOOK_CODE ? None of the following examples seem to work:
def hook_code(uc, address, size, userdata):
    uc.reg_write(arm_const.UC_ARM_REG_PC, 0x00)
def hook_code(uc, address, size, userdata):
    uc.mem_write(address+size, 0x00)