dsp.isa (5268:5bfc53fe60e7) dsp.isa (6383:31c067ae3331)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

138//Outputs to decoder.cc
139output decoder {{
140}};
141
142output exec {{
143 bool isDspEnabled(%(CPU_exec_context)s *xc)
144 {
145#if FULL_SYSTEM
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

138//Outputs to decoder.cc
139output decoder {{
140}};
141
142output exec {{
143 bool isDspEnabled(%(CPU_exec_context)s *xc)
144 {
145#if FULL_SYSTEM
146 if( bits( xc->readMiscReg(MipsISA::Status), 24, 24 ) == 0 )
146 if( bits( xc->readMiscReg(MISCREG_STATUS), 24, 24 ) == 0 )
147 return false;
148#else
149 //printf("Syscall Emulation Mode: isDspEnabled() check defaults to TRUE\n");
150#endif
151 return true;
152 }
153}};
154
155output exec {{
156 bool isDspPresent(%(CPU_exec_context)s *xc)
157 {
158#if FULL_SYSTEM
147 return false;
148#else
149 //printf("Syscall Emulation Mode: isDspEnabled() check defaults to TRUE\n");
150#endif
151 return true;
152 }
153}};
154
155output exec {{
156 bool isDspPresent(%(CPU_exec_context)s *xc)
157 {
158#if FULL_SYSTEM
159 if( bits( xc->readMiscReg(MipsISA::Config3), 10, 10 ) == 0 )
159 if( bits( xc->readMiscReg(MISCREG_CONFIG3), 10, 10 ) == 0 )
160 return false;
161#else
162 //printf("Syscall Emulation Mode: isDspPresent() check defaults to TRUE\n");
163#endif
164 return true;
165 }
166}};
167

--- 56 unchanged lines hidden ---
160 return false;
161#else
162 //printf("Syscall Emulation Mode: isDspPresent() check defaults to TRUE\n");
163#endif
164 return true;
165 }
166}};
167

--- 56 unchanged lines hidden ---