target-alpha: Implement RPCC.

A minimal implementation that more or less corresponds to the
user-level version used by target-i386.  More hoops will want
to be jumped through when alpha gets system-level emulation.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Richard Henderson 2010-04-12 16:18:43 -07:00 committed by Aurelien Jarno
parent 6910b8f66a
commit 18f8e2c08b
2 changed files with 3 additions and 3 deletions

View File

@ -355,7 +355,6 @@ struct CPUAlphaState {
uint64_t ir[31]; uint64_t ir[31];
float64 fir[31]; float64 fir[31];
uint64_t pc; uint64_t pc;
uint32_t pcc[2];
uint64_t ipr[IPR_LAST]; uint64_t ipr[IPR_LAST];
uint64_t ps; uint64_t ps;
uint64_t unique; uint64_t unique;

View File

@ -21,6 +21,7 @@
#include "host-utils.h" #include "host-utils.h"
#include "softfloat.h" #include "softfloat.h"
#include "helper.h" #include "helper.h"
#include "qemu-timer.h"
/*****************************************************************************/ /*****************************************************************************/
/* Exceptions processing helpers */ /* Exceptions processing helpers */
@ -33,8 +34,8 @@ void QEMU_NORETURN helper_excp (int excp, int error)
uint64_t helper_load_pcc (void) uint64_t helper_load_pcc (void)
{ {
/* XXX: TODO */ /* ??? This isn't a timer for which we have any rate info. */
return 0; return (uint32_t)cpu_get_real_ticks();
} }
uint64_t helper_load_fpcr (void) uint64_t helper_load_fpcr (void)