diff options
author | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2017-11-16 10:23:12 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2017-11-16 10:23:12 +0000 |
commit | 1554ed7ea429be444e74d5306be6692f517acf02 (patch) | |
tree | ebc30ef6ba542cf2b6199364d5666d5dfb121900 /gcc/ada/libgnarl | |
parent | 19c6e49cf41cd483601dca9c1e69e1bfb486dd2e (diff) | |
download | gcc-1554ed7ea429be444e74d5306be6692f517acf02.zip gcc-1554ed7ea429be444e74d5306be6692f517acf02.tar.gz gcc-1554ed7ea429be444e74d5306be6692f517acf02.tar.bz2 |
[multiple changes]
2017-11-16 Yannick Moy <moy@adacore.com>
* sem_elab.adb (Include): Fix mode of parameter Curr to out.
2017-11-16 Piotr Trojanek <trojanek@adacore.com>
* sem_util.ads, sem_util.adb (Is_CCT_Instance): Allow calls where
Context_Id denotes a record type.
2017-11-16 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch8.adb (Check_SPARK_Primitive_Operation): Enable the check in
instantiations.
2017-11-16 Doug Rupp <rupp@adacore.com>
Initial gnat port to aarch64-wrs-vxworks7
* libgnarl/s-vxwork__aarch64.ads,
libgnat/system-vxworks7-aarch64-rtp-smp.ads,
libgnat/system-vxworks7-aarch64.ads: New files
* sigtramp-vxworks-target.inc (aarch64): New section.
* tracebak.c (USE_ARM_UNWINDING): Disable for ARMARCH8A.
From-SVN: r254805
Diffstat (limited to 'gcc/ada/libgnarl')
-rw-r--r-- | gcc/ada/libgnarl/s-vxwork__aarch64.ads | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gcc/ada/libgnarl/s-vxwork__aarch64.ads b/gcc/ada/libgnarl/s-vxwork__aarch64.ads new file mode 100644 index 0000000..3edfe16 --- /dev/null +++ b/gcc/ada/libgnarl/s-vxwork__aarch64.ads @@ -0,0 +1,61 @@ +------------------------------------------------------------------------------ +-- -- +-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- +-- -- +-- S Y S T E M . V X W O R K S -- +-- -- +-- S p e c -- +-- -- +-- Copyright (C) 1998-2017, Free Software Foundation, Inc. -- +-- -- +-- GNARL is free software; you can redistribute it and/or modify it under -- +-- terms of the GNU General Public License as published by the Free Soft- -- +-- ware Foundation; either version 3, or (at your option) any later ver- -- +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- +-- or FITNESS FOR A PARTICULAR PURPOSE. -- +-- -- +-- As a special exception under Section 7 of GPL version 3, you are granted -- +-- additional permissions described in the GCC Runtime Library Exception, -- +-- version 3.1, as published by the Free Software Foundation. -- +-- -- +-- You should have received a copy of the GNU General Public License and -- +-- a copy of the GCC Runtime Library Exception along with this program; -- +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- +-- <http://www.gnu.org/licenses/>. -- +-- -- +-- GNARL was developed by the GNARL team at Florida State University. -- +-- Extensive contributions were provided by Ada Core Technologies, Inc. -- +-- -- +------------------------------------------------------------------------------ + +-- This is the AARCH64 VxWorks version of this package + +with Interfaces.C; + +package System.VxWorks is + pragma Preelaborate (System.VxWorks); + + package IC renames Interfaces.C; + + -- Floating point context record. ARM version + + type ulong128 is array (0 .. 1) of IC.unsigned_long; + FP_SGPR_NUM_REGS : constant := 32; + type Fpr_Sgpr_Array is array (1 .. FP_SGPR_NUM_REGS) of ulong128; + + -- The record definition below matches what arch/arm/fppArmLib.h says + + type FP_CONTEXT is record + fpcr : IC.unsigned_long; -- Floating-point Control Register + fpsr : IC.unsigned_long; -- Floating-point Status Register + vfp_gpr : Fpr_Sgpr_Array; + end record; + + for FP_CONTEXT'Alignment use 16; -- 128 bits + pragma Convention (C, FP_CONTEXT); + + Num_HW_Interrupts : constant := 256; + -- Number of entries in hardware interrupt vector table + +end System.VxWorks; |