summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/templates/vfp.isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/isa/templates/vfp.isa')
-rw-r--r--src/arch/arm/isa/templates/vfp.isa4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/arm/isa/templates/vfp.isa b/src/arch/arm/isa/templates/vfp.isa
index 8888dc0ae..90dd751ff 100644
--- a/src/arch/arm/isa/templates/vfp.isa
+++ b/src/arch/arm/isa/templates/vfp.isa
@@ -62,6 +62,10 @@ let {{
if (op1 != (int)MISCREG_FPSCR)
return disabledFault();
'''
+ vmrsApsrEnabledCheckCode = '''
+ if (!vfpEnabled(Cpacr, Cpsr))
+ return disabledFault();
+ '''
}};
def template FpRegRegOpDeclare {{