target-xtensa: add PS register and access control

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Max Filippov 2011-09-06 03:55:40 +04:00 committed by Blue Swirl
parent 8ffc2d0d97
commit f0a548b93d
3 changed files with 77 additions and 6 deletions

View file

@ -37,6 +37,7 @@
void cpu_reset(CPUXtensaState *env)
{
env->pc = 0;
env->sregs[PS] = 0x1f;
}
static const XtensaConfig core_config[] = {