utility.cc (2980:eab855f06b79) utility.cc (4661:44458219add1)
1/*
2 * Copyright (c) 2003-2006 The Regents of The University of Michigan
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;

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

23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Korey Sewell
29 */
30
1/*
2 * Copyright (c) 2003-2006 The Regents of The University of Michigan
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;

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

23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Korey Sewell
29 */
30
31#include "arch/mips/regfile.hh"
31#include "arch/mips/isa_traits.hh"
32#include "arch/mips/utility.hh"
32#include "arch/mips/utility.hh"
33#include "base/misc.hh"
33#include "arch/mips/constants.hh"
34#include "config/full_system.hh"
35#include "cpu/thread_context.hh"
36#include "cpu/static_inst.hh"
37#include "sim/serialize.hh"
34#include "base/bitfield.hh"
38#include "base/bitfield.hh"
39#include "base/misc.hh"
35
36using namespace MipsISA;
40
41using namespace MipsISA;
42using namespace std;
37
38uint64_t
39MipsISA::fpConvert(ConvertType cvt_type, double fp_val)
40{
41
42 switch (cvt_type)
43 {
44 case SINGLE_TO_DOUBLE:

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

192 uint64_t val_bits = *(uint64_t *) val_ptr;
193 return (bits(val_bits, 62, 51) == 0xFFF);
194 }
195
196 default:
197 panic("Type unsupported. Size mismatch\n");
198 }
199}
43
44uint64_t
45MipsISA::fpConvert(ConvertType cvt_type, double fp_val)
46{
47
48 switch (cvt_type)
49 {
50 case SINGLE_TO_DOUBLE:

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

198 uint64_t val_bits = *(uint64_t *) val_ptr;
199 return (bits(val_bits, 62, 51) == 0xFFF);
200 }
201
202 default:
203 panic("Type unsupported. Size mismatch\n");
204 }
205}
206
207void
208MipsISA::startupCPU(ThreadContext *tc, int cpuId)
209{
210 tc->activate(0);
211}