Merge zeep.pool:/z/saidi/work/m5.newmem
into zeep.pool:/z/saidi/work/m5.suncc --HG-- extra : convert_revision : 20f61a524a3b53fc0afcf53a24b5a1fe1d96f579
This commit is contained in:
@@ -691,8 +691,8 @@ decode OP default Unknown::unknown()
|
||||
Fsr &= ~(0x1F);
|
||||
}});
|
||||
0x0B: Trap::fabsq({{fault = new FpDisabled;}});
|
||||
0x29: fsqrts({{Frds.sf = sqrt(Frs2s.sf);}});
|
||||
0x2A: fsqrtd({{Frd.df = sqrt(Frs2.df);}});
|
||||
0x29: fsqrts({{Frds.sf = std::sqrt(Frs2s.sf);}});
|
||||
0x2A: fsqrtd({{Frd.df = std::sqrt(Frs2.df);}});
|
||||
0x2B: Trap::fsqrtq({{fault = new FpDisabled;}});
|
||||
0x41: fadds({{Frds.sf = Frs1s.sf + Frs2s.sf;}});
|
||||
0x42: faddd({{Frd.df = Frs1.df + Frs2.df;}});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2006 The Regents of The University of Michigan
|
||||
// Copyright (c) 2006-2007 The Regents of The University of Michigan
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@@ -38,6 +38,7 @@ def template BasicExecPanic {{
|
||||
Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
|
||||
{
|
||||
panic("Execute method called when it shouldn't!");
|
||||
M5_DUMMY_RETURN
|
||||
}
|
||||
}};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2006 The Regents of The University of Michigan
|
||||
// Copyright (c) 2006-2007 The Regents of The University of Michigan
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@@ -154,7 +154,7 @@ output decoder {{
|
||||
bool IntOp::printPseudoOps(std::ostream &os, Addr pc,
|
||||
const SymbolTable *symbab) const
|
||||
{
|
||||
if(!strcmp(mnemonic, "or") && _srcRegIdx[0] == 0)
|
||||
if(!std::strcmp(mnemonic, "or") && _srcRegIdx[0] == 0)
|
||||
{
|
||||
printMnemonic(os, "mov");
|
||||
printSrcReg(os, 1);
|
||||
@@ -168,7 +168,7 @@ output decoder {{
|
||||
bool IntOpImm::printPseudoOps(std::ostream &os, Addr pc,
|
||||
const SymbolTable *symbab) const
|
||||
{
|
||||
if(!strcmp(mnemonic, "or"))
|
||||
if(!std::strcmp(mnemonic, "or"))
|
||||
{
|
||||
if(_numSrcRegs > 0 && _srcRegIdx[0] == 0)
|
||||
{
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
//
|
||||
|
||||
output header {{
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
|
||||
@@ -65,6 +66,7 @@ output exec {{
|
||||
#endif
|
||||
#include <limits>
|
||||
|
||||
#include <cmath>
|
||||
#include "arch/sparc/asi.hh"
|
||||
#include "cpu/base.hh"
|
||||
#include "cpu/exetrace.hh"
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace SparcISA
|
||||
// These enumerate all the registers for dependence tracking.
|
||||
enum DependenceTags {
|
||||
FP_Base_DepTag = 33,
|
||||
Ctrl_Base_DepTag = 97,
|
||||
Ctrl_Base_DepTag = 97
|
||||
};
|
||||
|
||||
// semantically meaningful register indices
|
||||
|
||||
@@ -195,6 +195,7 @@ bool
|
||||
SparcSystem::breakpoint()
|
||||
{
|
||||
panic("Need to implement");
|
||||
M5_DUMMY_RETURN
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
* Authors: Ali Saidi
|
||||
*/
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "arch/sparc/asi.hh"
|
||||
#include "arch/sparc/miscregfile.hh"
|
||||
#include "arch/sparc/tlb.hh"
|
||||
@@ -53,7 +55,7 @@ TLB::TLB(const std::string &name, int s)
|
||||
fatal("SPARC T1 TLB registers don't support more than 64 TLB entries.");
|
||||
|
||||
tlb = new TlbEntry[size];
|
||||
memset(tlb, 0, sizeof(TlbEntry) * size);
|
||||
std::memset(tlb, 0, sizeof(TlbEntry) * size);
|
||||
|
||||
for (int x = 0; x < size; x++)
|
||||
freeList.push_back(&tlb[x]);
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace SparcISA
|
||||
|
||||
inline ExtMachInst
|
||||
makeExtMI(MachInst inst, ThreadContext * xc) {
|
||||
ExtMachInst emi = (unsigned MachInst) inst;
|
||||
ExtMachInst emi = (MachInst) inst;
|
||||
//The I bit, bit 13, is used to figure out where the ASI
|
||||
//should come from. Use that in the ExtMachInst. This is
|
||||
//slightly redundant, but it removes the need to put a condition
|
||||
|
||||
Reference in New Issue
Block a user