decode_cache.hh (9024:5851586f399c) decode_cache.hh (12621:982f22db6230)
1/*
2 * Copyright (c) 2011 Google
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;

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

42}
43
44namespace GenericISA
45{
46
47class BasicDecodeCache
48{
49 private:
1/*
2 * Copyright (c) 2011 Google
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;

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

42}
43
44namespace GenericISA
45{
46
47class BasicDecodeCache
48{
49 private:
50 DecodeCache::InstMap instMap;
50 DecodeCache::InstMap<TheISA::ExtMachInst> instMap;
51 DecodeCache::AddrMap<StaticInstPtr> decodePages;
52
53 public:
54 /// Decode a machine instruction.
55 /// @param mach_inst The binary instruction to decode.
56 /// @retval A pointer to the corresponding StaticInst object.
57 StaticInstPtr decode(TheISA::Decoder * const decoder,
58 TheISA::ExtMachInst mach_inst, Addr addr);
59};
60
61} // namespace GenericISA
62
63#endif // __ARCH_GENERIC_DECODE_CACHE_HH__
51 DecodeCache::AddrMap<StaticInstPtr> decodePages;
52
53 public:
54 /// Decode a machine instruction.
55 /// @param mach_inst The binary instruction to decode.
56 /// @retval A pointer to the corresponding StaticInst object.
57 StaticInstPtr decode(TheISA::Decoder * const decoder,
58 TheISA::ExtMachInst mach_inst, Addr addr);
59};
60
61} // namespace GenericISA
62
63#endif // __ARCH_GENERIC_DECODE_CACHE_HH__