decoder.hh (9024:5851586f399c) decoder.hh (9377:6f294e7a93d1)
1/*
2 * Copyright (c) 2012 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;

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

30
31#ifndef __ARCH_POWER_DECODER_HH__
32#define __ARCH_POWER_DECODER_HH__
33
34#include "arch/generic/decode_cache.hh"
35#include "arch/types.hh"
36#include "cpu/static_inst.hh"
37
1/*
2 * Copyright (c) 2012 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;

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

30
31#ifndef __ARCH_POWER_DECODER_HH__
32#define __ARCH_POWER_DECODER_HH__
33
34#include "arch/generic/decode_cache.hh"
35#include "arch/types.hh"
36#include "cpu/static_inst.hh"
37
38class ThreadContext;
39
40namespace PowerISA
41{
42
43class Decoder
44{
45 protected:
38namespace PowerISA
39{
40
41class Decoder
42{
43 protected:
46 ThreadContext * tc;
47
48 // The extended machine instruction being generated
49 ExtMachInst emi;
50 bool instDone;
51
52 public:
44 // The extended machine instruction being generated
45 ExtMachInst emi;
46 bool instDone;
47
48 public:
53 Decoder(ThreadContext * _tc) : tc(_tc), instDone(false)
49 Decoder() : instDone(false)
54 {
55 }
56
50 {
51 }
52
57 ThreadContext *
58 getTC()
59 {
60 return tc;
61 }
62
63 void
53 void
64 setTC(ThreadContext * _tc)
65 {
66 tc = _tc;
67 }
68
69 void
70 process()
71 {
72 }
73
74 void
75 reset()
76 {
77 instDone = false;

--- 59 unchanged lines hidden ---
54 process()
55 {
56 }
57
58 void
59 reset()
60 {
61 instDone = false;

--- 59 unchanged lines hidden ---