utility.cc (5499:8bfc7650c344) utility.cc (5570:13592d41f290)
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

140 return cc_val;
141}
142
143uint32_t
144genCCVector(uint32_t fcsr, int cc_num, uint32_t cc_val)
145{
146 int cc_idx = (cc_num == 0) ? 23 : cc_num + 24;
147
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

140 return cc_val;
141}
142
143uint32_t
144genCCVector(uint32_t fcsr, int cc_num, uint32_t cc_val)
145{
146 int cc_idx = (cc_num == 0) ? 23 : cc_num + 24;
147
148 fcsr = bits(fcsr, 31, cc_idx + 1) << cc_idx + 1 |
148 fcsr = bits(fcsr, 31, cc_idx + 1) << (cc_idx + 1) |
149 cc_val << cc_idx |
150 bits(fcsr, cc_idx - 1, 0);
151
152 return fcsr;
153}
154
155uint32_t
156genInvalidVector(uint32_t fcsr_bits)

--- 109 unchanged lines hidden ---
149 cc_val << cc_idx |
150 bits(fcsr, cc_idx - 1, 0);
151
152 return fcsr;
153}
154
155uint32_t
156genInvalidVector(uint32_t fcsr_bits)

--- 109 unchanged lines hidden ---