Skip to content
  • Nathan Froyd's avatar
    target-mips: add mips16 instruction decoding · 364d4831
    Nathan Froyd authored
    
    
    There's no good way to add this incrementally, so we do it all at once.
    The only changes to shared code are in handle_delay_slot.  We need to
    flip ISAMode when doing a jump-and-exchange.  We also need to set
    ISAMode the low bit of the target address for jump-to-register.
    
    Also, since we're now adding bits that can be in MIPS_HFLAG_BMASK_EXT,
    make sure we use MIPS_HFLAG_BMASK_BASE in the places where we just want
    basic information about a branch.
    
    Signed-off-by: default avatarNathan Froyd <froydnj@codesourcery.com>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    364d4831