• The powerpc xml files contained a hack--an empty, non-existent
    register--for getting the register numbers to line up for
    newer (XML-aware) and older (non-XML-aware) GDB.  While this hack worked
    in some cases, it didn't work in all cases, notably when the user used
    `finish' or `continue': GDB would attempt to read the non-existent
    register and QEMU would complain.
    
    This patch fixes things up properly.  Instead of inserting a fake
    register, we explicitly declare the floating-point and SPE registers to
    start at 71.  This action accomplishes the same thing as the nasty hack,
    except that now GDB never tries to fetch the non-existant register 70.
    
    Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    Nathan Froyd authored
     
    Browse Code »
  • For 32-bit PPC targets, we translated:
    
    evmergelo rX, rX, rY
    
    as:
    
    rX-lo = rY-lo
    rX-hi = rX-lo
    
    which is wrong, because we should be transferring rX-lo first.  This
    problem is fixed by swapping the order in which we write the parts of
    rX.
    
    Similarly, we translated:
    
    evmergelohi rX, rX, rY
    
    as:
    
    rX-lo = rY-hi
    rX-hi = rX-lo
    
    In this case, we can't swap the assignment statements, because that
    would just cause problems for:
    
    evmergelohi rX, rY, rX
    
    Instead, we detect the first case and save rX-lo in a temporary
    variable:
    
    tmp = rX-lo
    rX-lo = rY-hi
    rX-hi = tmp
    
    These problems don't occur on PPC64 targets because we don't split the
    SPE registers into hi/lo parts for such targets.
    
    Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    Nathan Froyd authored
     
    Browse Code »