vfp.isa (7640:5286a8a469c5) | vfp.isa (7644:62873d5c2bfc) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2010 ARM Limited 4// All rights reserved 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 29 unchanged lines hidden (view full) --- 38// Authors: Gabe Black 39 40let {{ 41 vfpEnabledCheckCode = ''' 42 if (!vfpEnabled(Cpacr, Cpsr, Fpexc)) 43 return disabledFault(); 44 ''' 45 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2010 ARM Limited 4// All rights reserved 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 29 unchanged lines hidden (view full) --- 38// Authors: Gabe Black 39 40let {{ 41 vfpEnabledCheckCode = ''' 42 if (!vfpEnabled(Cpacr, Cpsr, Fpexc)) 43 return disabledFault(); 44 ''' 45 |
46 vmsrrsEnabledCheckCode = ''' | 46 vmsrEnabledCheckCode = ''' |
47 if (!vfpEnabled(Cpacr, Cpsr)) | 47 if (!vfpEnabled(Cpacr, Cpsr)) |
48 return disabledFault(); | 48 if (dest != (int)MISCREG_FPEXC && dest != (int)MISCREG_FPSID) 49 return disabledFault(); 50 if (!inPrivilegedMode(Cpsr)) 51 if (dest != (int)MISCREG_FPSCR) 52 return disabledFault(); 53 |
49 ''' | 54 ''' |
55 56 vmrsEnabledCheckCode = ''' 57 if (!vfpEnabled(Cpacr, Cpsr)) 58 if (op1 != (int)MISCREG_FPEXC && op1 != (int)MISCREG_FPSID && 59 op1 != (int)MISCREG_MVFR0 && op1 != (int)MISCREG_MVFR1) 60 return disabledFault(); 61 if (!inPrivilegedMode(Cpsr)) 62 if (op1 != (int)MISCREG_FPSCR) 63 return disabledFault(); 64 ''' |
|
50}}; 51 52def template FpRegRegOpDeclare {{ 53class %(class_name)s : public %(base_class)s 54{ 55 public: 56 // Constructor 57 %(class_name)s(ExtMachInst machInst, --- 87 unchanged lines hidden --- | 65}}; 66 67def template FpRegRegOpDeclare {{ 68class %(class_name)s : public %(base_class)s 69{ 70 public: 71 // Constructor 72 %(class_name)s(ExtMachInst machInst, --- 87 unchanged lines hidden --- |