microop.hh (4679:0b39fa8f5eb8) microop.hh (5083:49559a8060e8)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

57
58#ifndef __ARCH_X86_INSTS_MICROOP_HH__
59#define __ARCH_X86_INSTS_MICROOP_HH__
60
61#include "arch/x86/insts/static_inst.hh"
62
63namespace X86ISA
64{
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

57
58#ifndef __ARCH_X86_INSTS_MICROOP_HH__
59#define __ARCH_X86_INSTS_MICROOP_HH__
60
61#include "arch/x86/insts/static_inst.hh"
62
63namespace X86ISA
64{
65 namespace ConditionTests
66 {
67 enum CondTest {
68 True,
69 NotFalse = True,
70 ECF,
71 EZF,
72 SZnZF,
73 MSTRZ,
74 STRZ,
75 MSTRC,
76 STRZnEZF,
77 OF,
78 CF,
79 ZF,
80 CvZF,
81 SF,
82 PF,
83 SxOF,
84 SxOvZF,
85
86 False,
87 NotTrue = False,
88 NotECF,
89 NotEZF,
90 NotSZnZF,
91 NotMSTRZ,
92 NotSTRZ,
93 NotMSTRC,
94 STRnZnEZF,
95 NotOF,
96 NotCF,
97 NotZF,
98 NotCvZF,
99 NotSF,
100 NotPF,
101 NotSxOF,
102 NotSxOvZF
103 };
104 }
105
65 //A class which is the base of all x86 micro ops. It provides a function to
66 //set necessary flags appropriately.
67 class X86MicroopBase : public X86StaticInst
68 {
69 protected:
70 const char * instMnem;
71 uint8_t opSize;
72 uint8_t addrSize;

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

89 const SymbolTable *symtab) const
90 {
91 std::stringstream ss;
92
93 ccprintf(ss, "\t%s.%s", instMnem, mnemonic);
94
95 return ss.str();
96 }
106 //A class which is the base of all x86 micro ops. It provides a function to
107 //set necessary flags appropriately.
108 class X86MicroopBase : public X86StaticInst
109 {
110 protected:
111 const char * instMnem;
112 uint8_t opSize;
113 uint8_t addrSize;

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

130 const SymbolTable *symtab) const
131 {
132 std::stringstream ss;
133
134 ccprintf(ss, "\t%s.%s", instMnem, mnemonic);
135
136 return ss.str();
137 }
138
139 bool checkCondition(uint64_t flags, int condition) const;
97 };
98}
99
100#endif //__ARCH_X86_INSTS_MICROOP_HH__
140 };
141}
142
143#endif //__ARCH_X86_INSTS_MICROOP_HH__