提交 aa9e14e6 编写于 作者: A Aurelien Jarno 提交者: Alexander Graf

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: NAurelien Jarno <aurelien@aurel32.net>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 d9d55f11
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册