]> Git Repo - qemu.git/blobdiff - linux-user/aarch64/target_cpu.h
migration-test: Only generate a single target architecture
[qemu.git] / linux-user / aarch64 / target_cpu.h
index b5593dc5ad6931757fcebd46b745b7676c2d7c10..a021c95fa418ff6bd543417c42b59a7f4324e758 100644 (file)
@@ -16,8 +16,8 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
-#ifndef TARGET_CPU_H
-#define TARGET_CPU_H
+#ifndef AARCH64_TARGET_CPU_H
+#define AARCH64_TARGET_CPU_H
 
 static inline void cpu_clone_regs(CPUARMState *env, target_ulong newsp)
 {
@@ -35,4 +35,8 @@ static inline void cpu_set_tls(CPUARMState *env, target_ulong newtls)
     env->cp15.tpidr_el[0] = newtls;
 }
 
+static inline abi_ulong get_sp_from_cpustate(CPUARMState *state)
+{
+   return state->xregs[31];
+}
 #endif
This page took 0.023741 seconds and 4 git commands to generate.