x86: change divide-by-zero fault to division-error
Review Request #2742 - Created April 17, 2015 and submitted
| Information | |
|---|---|
| Nilay Vaish | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10789:2e0a032f82e0 --------------------------- x86: change divide-by-zero fault to division-error Same exception is raised whether division with zero is performed or the quotient is greater than the maximum value that the provided space can hold.
Posted (April 18, 2015, 8:19 p.m.)
Although I agree that the name "divide-by-zero" is not the most clearly descriptive, that is the name of the exception in the x86 architecture (see for example http://wiki.osdev.org/Exceptions, or Table 2-1 of Vol 3 of the AMD64 Architecture Programmer's Manual. If you think it needs more comments to explain this discrepancy, that's fine, but I think we should keep the exception names consistent with the architecture definition.
Review request changed
Updated (April 20, 2015, 9:42 a.m.)
Description: |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+7 -6) |
Works for me. Thanks, Nilay!
