regop.isa (7087:fb8d5786ff30) regop.isa (7480:6a854784be4f)
1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// The license below extends only to copyright in the software and shall
5// not be construed as granting a license to any other intellectual
6// property including but not limited to intellectual property relating
7// to a hardware implementation of the functionality of the software
8// licensed hereunder. You may use the software subject to the license

--- 622 unchanged lines hidden (view full) ---

631 }
632 //Keep track of how many bits there are still to pull in.
633 DestReg = merge(DestReg, remaining, dataSize);
634 //Record the final results
635 Remainder = remainder;
636 Quotient = quotient;
637 '''
638 flag_code = '''
1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// The license below extends only to copyright in the software and shall
5// not be construed as granting a license to any other intellectual
6// property including but not limited to intellectual property relating
7// to a hardware implementation of the functionality of the software
8// licensed hereunder. You may use the software subject to the license

--- 622 unchanged lines hidden (view full) ---

631 }
632 //Keep track of how many bits there are still to pull in.
633 DestReg = merge(DestReg, remaining, dataSize);
634 //Record the final results
635 Remainder = remainder;
636 Quotient = quotient;
637 '''
638 flag_code = '''
639 if (DestReg == 0)
639 if (remaining == 0)
640 ccFlagBits = ccFlagBits | (ext & EZFBit);
641 else
642 ccFlagBits = ccFlagBits & ~(ext & EZFBit);
643 '''
644
645 class Divq(RdRegOp):
646 code = 'DestReg = merge(SrcReg1, Quotient, dataSize);'
647

--- 793 unchanged lines hidden ---
640 ccFlagBits = ccFlagBits | (ext & EZFBit);
641 else
642 ccFlagBits = ccFlagBits & ~(ext & EZFBit);
643 '''
644
645 class Divq(RdRegOp):
646 code = 'DestReg = merge(SrcReg1, Quotient, dataSize);'
647

--- 793 unchanged lines hidden ---