On Sun, 19 Apr 2015, Joel Hestness wrote:



On April 19, 2015, 3:19 a.m., Steve Reinhardt wrote:
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.

While I think we should leave the AMD naming, it's probably worth noting/commenting that Intel calls the 0 (#DE) exception a "divide error" in their documentation. http://www.intel.com/Assets/en_US/PDF/manual/253668.pdf, http://ensiwiki.ensimag.fr/images/0/09/4MMPS_traps.pdf




I was reading Intel's documentation, and as Joel pointed, Intel uses "divide error". Also note that the exception DE is raised not only when divide-by-zero error happens, but also when the quotient cannot reside in the provided space. So divide-by-zero is incomplete. Hence the review request.

--
Nilay
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to