psci.c (c4380f7bcdcb68fdfca876db366782a807fab8f7) psci.c (e2d8cf9b5312ada63ffa7460dec7cf89cf0bd61e)
1/*
2 * Copyright (C) 2014 - Linaro
3 * Author: Rob Herring <rob.herring@linaro.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 10 unchanged lines hidden (view full) ---

19#include "qemu/osdep.h"
20#include "cpu.h"
21#include "exec/helper-proto.h"
22#include "kvm-consts.h"
23#include "qemu/main-loop.h"
24#include "sysemu/runstate.h"
25#include "internals.h"
26#include "arm-powerctl.h"
1/*
2 * Copyright (C) 2014 - Linaro
3 * Author: Rob Herring <rob.herring@linaro.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 10 unchanged lines hidden (view full) ---

19#include "qemu/osdep.h"
20#include "cpu.h"
21#include "exec/helper-proto.h"
22#include "kvm-consts.h"
23#include "qemu/main-loop.h"
24#include "sysemu/runstate.h"
25#include "internals.h"
26#include "arm-powerctl.h"
27#include "target/arm/multiprocessing.h"
27
28bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
29{
30 /*
31 * Return true if the exception type matches the configured PSCI conduit.
32 * This is called before the SMC/HVC instruction is executed, to decide
33 * whether we should treat it as a PSCI call or with the architecturally
34 * defined behaviour for an SMC or HVC (which might be UNDEF or trap

--- 188 unchanged lines hidden ---
28
29bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
30{
31 /*
32 * Return true if the exception type matches the configured PSCI conduit.
33 * This is called before the SMC/HVC instruction is executed, to decide
34 * whether we should treat it as a PSCI call or with the architecturally
35 * defined behaviour for an SMC or HVC (which might be UNDEF or trap

--- 188 unchanged lines hidden ---