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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
env->ckc = time;
|
||||||
|
|
||||||
/* difference between origins */
|
/* difference between origins */
|
||||||
time -= env->tod_offset;
|
time -= env->tod_offset;
|
||||||
|
|
||||||
|
@ -298,8 +300,7 @@ void HELPER(sckc)(CPUS390XState *env, uint64_t time)
|
||||||
/* Store Clock Comparator */
|
/* Store Clock Comparator */
|
||||||
uint64_t HELPER(stckc)(CPUS390XState *env)
|
uint64_t HELPER(stckc)(CPUS390XState *env)
|
||||||
{
|
{
|
||||||
/* XXX implement */
|
return env->ckc;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set CPU Timer */
|
/* Set CPU Timer */
|
||||||
|
|
Loading…
Reference in a new issue