1/*
2   Copyright (C) 2011-2016 Free Software Foundation, Inc.
3   Contributed by ARM Ltd.
4
5   This file is part of GAS.
6
7   GAS is free software; you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation; either version 3 of the license, or
10   (at your option) any later version.
11
12   GAS is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with this program; see the file COPYING3. If not,
19   see <http://www.gnu.org/licenses/>.  */
20
21func:
22	msr daifset, #0
23	msr daifset, #1
24	msr daifset, #15
25
26
27
28	msr daifclr, #0
29	msr daifclr, #1
30	msr daifclr, #15
31
32	msr daif, x0
33	mrs x0, daif
34
35	msr spsel, #0
36	msr spsel, #1
37