Deleted Added
sdiff udiff text old ( 6383:31c067ae3331 ) new ( 8564:f81bcb16fa1b )
full compact
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

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

135 }
136}};
137
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(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
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
168// add code to fetch the DSPControl register
169// and write it back after execution, giving
170// the instruction the opportunity to modify
171// it if necessary
172def format DspIntOp(code, *opt_flags) {{

--- 51 unchanged lines hidden ---