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:
Aurelien Jarno 2015-05-18 23:42:28 +02:00 committed by Alexander Graf
parent d9d55f1108
commit aa9e14e684

View file

@ -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 */