From 16882b04838c33e7de5456937b8b069547827b2a Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 7 Aug 2011 09:21:48 -0700 Subject: Translation: Use a pointer type as the template argument. This allows regular pointers and reference counted pointers without having to use any shim structures or other tricks. --- src/cpu/translation.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu/translation.hh') diff --git a/src/cpu/translation.hh b/src/cpu/translation.hh index 60953540f..b6bc2182c 100644 --- a/src/cpu/translation.hh +++ b/src/cpu/translation.hh @@ -214,21 +214,21 @@ class WholeTranslationState * translation state class indicate that the whole translation is complete * then the execution context is informed. */ -template +template class DataTranslation : public BaseTLB::Translation { protected: - ExecContext *xc; + ExecContextPtr xc; WholeTranslationState *state; int index; public: - DataTranslation(ExecContext *_xc, WholeTranslationState* _state) + DataTranslation(ExecContextPtr _xc, WholeTranslationState* _state) : xc(_xc), state(_state), index(0) { } - DataTranslation(ExecContext *_xc, WholeTranslationState* _state, + DataTranslation(ExecContextPtr _xc, WholeTranslationState* _state, int _index) : xc(_xc), state(_state), index(_index) { -- cgit v1.2.3