macroop.hh (7720:65d338a8dba4) macroop.hh (7966:0dff1ff293d0)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

36 *
37 * Authors: Gabe Black
38 */
39
40#ifndef __ARCH_X86_INSTS_MACROOP_HH__
41#define __ARCH_X86_INSTS_MACROOP_HH__
42
43#include "arch/x86/emulenv.hh"
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

36 *
37 * Authors: Gabe Black
38 */
39
40#ifndef __ARCH_X86_INSTS_MACROOP_HH__
41#define __ARCH_X86_INSTS_MACROOP_HH__
42
43#include "arch/x86/emulenv.hh"
44#include "arch/x86/insts/badmicroop.hh"
44#include "arch/x86/types.hh"
45#include "arch/x86/insts/static_inst.hh"
46
47namespace X86ISA
48{
49// Base class for combinationally generated macroops
50class MacroopBase : public X86StaticInst
51{

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

71 delete [] microops;
72 }
73
74 StaticInstPtr * microops;
75
76 StaticInstPtr
77 fetchMicroop(MicroPC microPC) const
78 {
45#include "arch/x86/types.hh"
46#include "arch/x86/insts/static_inst.hh"
47
48namespace X86ISA
49{
50// Base class for combinationally generated macroops
51class MacroopBase : public X86StaticInst
52{

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

72 delete [] microops;
73 }
74
75 StaticInstPtr * microops;
76
77 StaticInstPtr
78 fetchMicroop(MicroPC microPC) const
79 {
79 assert(microPC < numMicroops);
80 return microops[microPC];
80 if (microPC >= numMicroops)
81 return badMicroop;
82 else
83 return microops[microPC];
81 }
82
83 std::string
84 generateDisassembly(Addr pc, const SymbolTable *symtab) const
85 {
86 return mnemonic;
87 }
88

--- 16 unchanged lines hidden ---
84 }
85
86 std::string
87 generateDisassembly(Addr pc, const SymbolTable *symtab) const
88 {
89 return mnemonic;
90 }
91

--- 16 unchanged lines hidden ---