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 VFP IDs for QEMU's emulated Cortex-A15.



details:   https://anonhg.NetBSD.org/src/rev/80a08768f33f
branches:  trunk
changeset: 336061:80a08768f33f
user:      slp <slp%NetBSD.org@localhost>
date:      Mon Feb 09 07:55:52 2015 +0000

description:
Add VFP IDs for QEMU's emulated Cortex-A15.

diffstat:

 sys/arch/arm/include/vfpreg.h |  3 ++-
 sys/arch/arm/vfp/vfp_init.c   |  5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r d92dcb42487f -r 80a08768f33f sys/arch/arm/include/vfpreg.h
--- a/sys/arch/arm/include/vfpreg.h     Mon Feb 09 07:53:39 2015 +0000
+++ b/sys/arch/arm/include/vfpreg.h     Mon Feb 09 07:55:52 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: vfpreg.h,v 1.13 2014/03/18 07:03:22 matt Exp $ */
+/*      $NetBSD: vfpreg.h,v 1.14 2015/02/09 07:55:52 slp Exp $ */
 
 /*
  * Copyright (c) 2008 ARM Ltd
@@ -64,6 +64,7 @@
 #define FPU_VFP_CORTEXA8       0x410330c0
 #define FPU_VFP_CORTEXA9       0x41033090
 #define FPU_VFP_CORTEXA15      0x410330f0
+#define FPU_VFP_CORTEXA15_QEMU 0x410430f0
 #define FPU_VFP_MV88SV58XX     0x56022090
 
 #define VFP_FPEXC_EX           0x80000000      /* EXception status bit */
diff -r d92dcb42487f -r 80a08768f33f sys/arch/arm/vfp/vfp_init.c
--- a/sys/arch/arm/vfp/vfp_init.c       Mon Feb 09 07:53:39 2015 +0000
+++ b/sys/arch/arm/vfp/vfp_init.c       Mon Feb 09 07:55:52 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: vfp_init.c,v 1.41 2014/07/18 22:54:53 matt Exp $ */
+/*      $NetBSD: vfp_init.c,v 1.42 2015/02/09 07:55:52 slp Exp $ */
 
 /*
  * Copyright (c) 2008 ARM Ltd
@@ -94,6 +94,7 @@
        case FPU_VFP_CORTEXA8:
        case FPU_VFP_CORTEXA9:
        case FPU_VFP_CORTEXA15:
+       case FPU_VFP_CORTEXA15_QEMU:
 #endif
                load_vfpregs_hi(fregs->vfp_regs);
 #ifdef CPU_ARM11
@@ -115,6 +116,7 @@
        case FPU_VFP_CORTEXA8:
        case FPU_VFP_CORTEXA9:
        case FPU_VFP_CORTEXA15:
+       case FPU_VFP_CORTEXA15_QEMU:
 #endif
                save_vfpregs_hi(fregs->vfp_regs);
 #ifdef CPU_ARM11
@@ -312,6 +314,7 @@
        case FPU_VFP_CORTEXA8:
        case FPU_VFP_CORTEXA9:
        case FPU_VFP_CORTEXA15:
+       case FPU_VFP_CORTEXA15_QEMU:
                if (armreg_cpacr_read() & CPACR_V7_ASEDIS) {
                        model = "VFP 4.0+";
                } else {



Home | Main Index | Thread Index | Old Index