dsp.isa (6383:31c067ae3331) | dsp.isa (8564:f81bcb16fa1b) |
---|---|
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 {{ | 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) | 143 bool 144 isDspEnabled(%(CPU_exec_context)s *xc) |
144 { | 145 { |
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; | 146 return !FULL_SYSTEM || bits(xc->readMiscReg(MISCREG_STATUS), 24); |
152 } 153}}; 154 155output exec {{ | 147 } 148}}; 149 150output exec {{ |
156 bool isDspPresent(%(CPU_exec_context)s *xc) | 151 bool 152 isDspPresent(%(CPU_exec_context)s *xc) |
157 { | 153 { |
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; | 154 return !FULL_SYSTEM || bits(xc->readMiscReg(MISCREG_CONFIG3), 10); |
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 --- | 155 } 156}}; 157 158// add code to fetch the DSPControl register 159// and write it back after execution, giving 160// the instruction the opportunity to modify 161// it if necessary 162def format DspIntOp(code, *opt_flags) {{ --- 51 unchanged lines hidden --- |