utility.hh (6759:98101a5f7ee4) | utility.hh (7111:ee902ae075bb) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated 11 * unmodified and in its entirety in all distributions of the software, 12 * modified or unmodified, in source code or in binary form. 13 * |
|
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer; --- 55 unchanged lines hidden (view full) --- 65 case COND_VC: return !cpsr.v; 66 case COND_HI: return (cpsr.c && !cpsr.z); 67 case COND_LS: return !(cpsr.c && !cpsr.z); 68 case COND_GE: return !(cpsr.n ^ cpsr.v); 69 case COND_LT: return (cpsr.n ^ cpsr.v); 70 case COND_GT: return !(cpsr.n ^ cpsr.v || cpsr.z); 71 case COND_LE: return (cpsr.n ^ cpsr.v || cpsr.z); 72 case COND_AL: return true; | 14 * Copyright (c) 2003-2005 The Regents of The University of Michigan 15 * Copyright (c) 2007-2008 The Florida State University 16 * All rights reserved. 17 * 18 * Redistribution and use in source and binary forms, with or without 19 * modification, are permitted provided that the following conditions are 20 * met: redistributions of source code must retain the above copyright 21 * notice, this list of conditions and the following disclaimer; --- 55 unchanged lines hidden (view full) --- 77 case COND_VC: return !cpsr.v; 78 case COND_HI: return (cpsr.c && !cpsr.z); 79 case COND_LS: return !(cpsr.c && !cpsr.z); 80 case COND_GE: return !(cpsr.n ^ cpsr.v); 81 case COND_LT: return (cpsr.n ^ cpsr.v); 82 case COND_GT: return !(cpsr.n ^ cpsr.v || cpsr.z); 83 case COND_LE: return (cpsr.n ^ cpsr.v || cpsr.z); 84 case COND_AL: return true; |
73 case COND_NV: return false; | 85 case COND_UC: return true; |
74 default: 75 panic("Unhandled predicate condition: %d\n", code); 76 } 77 } 78 79 /** 80 * Function to insure ISA semantics about 0 registers. 81 * @param tc The thread context. --- 64 unchanged lines hidden --- | 86 default: 87 panic("Unhandled predicate condition: %d\n", code); 88 } 89 } 90 91 /** 92 * Function to insure ISA semantics about 0 registers. 93 * @param tc The thread context. --- 64 unchanged lines hidden --- |