mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
HPPA (PA-RISC) host support
(Stuart Brady) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4199 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
339dea2774
commit
f54b3f920f
17 changed files with 4505 additions and 13 deletions
11
cpu-all.h
11
cpu-all.h
|
@ -20,7 +20,7 @@
|
|||
#ifndef CPU_ALL_H
|
||||
#define CPU_ALL_H
|
||||
|
||||
#if defined(__arm__) || defined(__sparc__) || defined(__mips__)
|
||||
#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__)
|
||||
#define WORDS_ALIGNED
|
||||
#endif
|
||||
|
||||
|
@ -952,6 +952,15 @@ static inline int64_t cpu_get_real_ticks(void)
|
|||
return val;
|
||||
}
|
||||
|
||||
#elif defined(__hppa__)
|
||||
|
||||
static inline int64_t cpu_get_real_ticks(void)
|
||||
{
|
||||
int val;
|
||||
asm volatile ("mfctl %%cr16, %0" : "=r"(val));
|
||||
return val;
|
||||
}
|
||||
|
||||
#elif defined(__ia64)
|
||||
|
||||
static inline int64_t cpu_get_real_ticks(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue