mirror of https://github.com/xqemu/xqemu.git
target-s390x: implement STCKC helper
The STCKC instruction just returns the last written clock comparator value and KVM already provides the corresponding variable. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
d9d55f1108
commit
aa9e14e684
|
@ -286,6 +286,8 @@ void HELPER(sckc)(CPUS390XState *env, uint64_t time)
|
|||
return;
|
||||
}
|
||||
|
||||
env->ckc = time;
|
||||
|
||||
/* difference between origins */
|
||||
time -= env->tod_offset;
|
||||
|
||||
|
@ -298,8 +300,7 @@ void HELPER(sckc)(CPUS390XState *env, uint64_t time)
|
|||
/* Store Clock Comparator */
|
||||
uint64_t HELPER(stckc)(CPUS390XState *env)
|
||||
{
|
||||
/* XXX implement */
|
||||
return 0;
|
||||
return env->ckc;
|
||||
}
|
||||
|
||||
/* Set CPU Timer */
|
||||
|
|
Loading…
Reference in New Issue