summaryrefslogtreecommitdiffstats
path: root/src/kernel/exception.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/exception.C')
-rw-r--r--src/kernel/exception.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/exception.C b/src/kernel/exception.C
index 80e04fc34..c82bfec98 100644
--- a/src/kernel/exception.C
+++ b/src/kernel/exception.C
@@ -199,8 +199,7 @@ void kernel_execute_fp_unavail()
{
// Enable FP by creating a FP context.
// Context switch code will handle the rest.
- t->fp_context = new context_fp_t;
- memset(t->fp_context, '\0', sizeof(context_fp_t));
+ t->fp_context = new context_fp_t();
}
}
OpenPOWER on IntegriCloud