Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm Add support for the Cortex-A15 Neon/VFP unit
details: https://anonhg.NetBSD.org/src/rev/45481b2eb641
branches: trunk
changeset: 787473:45481b2eb641
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 20 05:24:46 2013 +0000
description:
Add support for the Cortex-A15 Neon/VFP unit
diffstat:
sys/arch/arm/include/vfpreg.h | 3 ++-
sys/arch/arm/vfp/vfp_init.c | 7 ++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (66 lines):
diff -r 952f170c736e -r 45481b2eb641 sys/arch/arm/include/vfpreg.h
--- a/sys/arch/arm/include/vfpreg.h Wed Jun 19 21:12:03 2013 +0000
+++ b/sys/arch/arm/include/vfpreg.h Thu Jun 20 05:24:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfpreg.h,v 1.8 2013/02/12 15:05:26 matt Exp $ */
+/* $NetBSD: vfpreg.h,v 1.9 2013/06/20 05:24:46 matt Exp $ */
/*
* Copyright (c) 2008 ARM Ltd
@@ -63,6 +63,7 @@
#define FPU_VFP_CORTEXA7 0x41023070
#define FPU_VFP_CORTEXA8 0x410330c0
#define FPU_VFP_CORTEXA9 0x41033090
+#define FPU_VFP_CORTEXA15 0x410330f0
#define VFP_FPEXC_EX 0x80000000 /* EXception status bit */
#define VFP_FPEXC_EN 0x40000000 /* VFP Enable bit */
diff -r 952f170c736e -r 45481b2eb641 sys/arch/arm/vfp/vfp_init.c
--- a/sys/arch/arm/vfp/vfp_init.c Wed Jun 19 21:12:03 2013 +0000
+++ b/sys/arch/arm/vfp/vfp_init.c Thu Jun 20 05:24:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfp_init.c,v 1.19 2013/02/05 23:23:34 matt Exp $ */
+/* $NetBSD: vfp_init.c,v 1.20 2013/06/20 05:24:46 matt Exp $ */
/*
* Copyright (c) 2008 ARM Ltd
@@ -152,6 +152,7 @@
case FPU_VFP_CORTEXA7:
case FPU_VFP_CORTEXA8:
case FPU_VFP_CORTEXA9:
+ case FPU_VFP_CORTEXA15:
#endif
load_vfpregs_hi(fregs->vfp_regs);
#ifdef CPU_ARM11
@@ -172,6 +173,7 @@
case FPU_VFP_CORTEXA7:
case FPU_VFP_CORTEXA8:
case FPU_VFP_CORTEXA9:
+ case FPU_VFP_CORTEXA15:
#endif
save_vfpregs_hi(fregs->vfp_regs);
#ifdef CPU_ARM11
@@ -376,6 +378,7 @@
case FPU_VFP_CORTEXA7:
case FPU_VFP_CORTEXA8:
case FPU_VFP_CORTEXA9:
+ case FPU_VFP_CORTEXA15:
model = "NEON MPE (VFP 3.0+)";
cpu_neon_present = 1;
break;
@@ -539,6 +542,7 @@
case FPU_VFP_CORTEXA7:
case FPU_VFP_CORTEXA8:
case FPU_VFP_CORTEXA9:
+ case FPU_VFP_CORTEXA15:
write_fpinst2(fregs->vfp_fpinst2);
write_fpinst(fregs->vfp_fpinst);
break;
@@ -588,6 +592,7 @@
case FPU_VFP_CORTEXA7:
case FPU_VFP_CORTEXA8:
case FPU_VFP_CORTEXA9:
+ case FPU_VFP_CORTEXA15:
fregs->vfp_fpinst = read_fpinst();
fregs->vfp_fpinst2 = read_fpinst2();
break;
Home |
Main Index |
Thread Index |
Old Index