diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2013-12-27 23:27:01 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2013-12-27 23:27:01 -0500 |
commit | 63f98f9d96d1bda1cc87a4cf6897c50d0f6fd824 (patch) | |
tree | 73a001dce3ce77f2347de37c2d4dd5831f91b387 | |
parent | 3f65fd3c1acc2eddae47bf2af9e651a859c1a2b4 (diff) |
Disallow use of esp/rsp as index registers
-rw-r--r-- | simplex86.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/simplex86.c b/simplex86.c index b2346f3..c1ced11 100644 --- a/simplex86.c +++ b/simplex86.c @@ -1773,11 +1773,8 @@ emit_reg_regm (uint8_t *c, op_t reg, op_t regm, if (index_regno == esp_regno) { - /* FIXME: Shouldn't this just be considered - * user error instead of being mysteriously - * reinterpreted as something else? - */ - index_regno = NO_REG; + printf ("esp/rsp can't be used as an index register\n"); + abort(); } if (index == NO_REG) |