fp.isa (8560:5c4bac827934) | fp.isa (8738:66bf413b0d5b) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 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 --- 31 unchanged lines hidden (view full) --- 40output exec {{ 41 /// Check "FP enabled" machine status bit. Called when executing any FP 42 /// instruction in full-system mode. 43 /// @retval Full-system mode: NoFault if FP is enabled, FenFault 44 /// if not. Non-full-system mode: always returns NoFault. 45 inline Fault checkFpEnableFault(%(CPU_exec_context)s *xc) 46 { 47 Fault fault = NoFault; // dummy... this ipr access should not fault | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 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 --- 31 unchanged lines hidden (view full) --- 40output exec {{ 41 /// Check "FP enabled" machine status bit. Called when executing any FP 42 /// instruction in full-system mode. 43 /// @retval Full-system mode: NoFault if FP is enabled, FenFault 44 /// if not. Non-full-system mode: always returns NoFault. 45 inline Fault checkFpEnableFault(%(CPU_exec_context)s *xc) 46 { 47 Fault fault = NoFault; // dummy... this ipr access should not fault |
48 if (FULL_SYSTEM && !ICSR_FPE(xc->readMiscReg(IPR_ICSR))) { | 48 if (FullSystem && !ICSR_FPE(xc->readMiscReg(IPR_ICSR))) { |
49 fault = new FloatEnableFault; 50 } 51 return fault; 52 } 53}}; 54 55output header {{ 56 /** --- 249 unchanged lines hidden --- | 49 fault = new FloatEnableFault; 50 } 51 return fault; 52 } 53}}; 54 55output header {{ 56 /** --- 249 unchanged lines hidden --- |