sim,misc: Rename Float namespace as as_float
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. sim_clock::Float became sim_clock::as_float. "as_float" was chosen because "float" is a reserved keywords, and this namespace acts as a selector of how to read the internal variables. Another possibility to resolve this would be to remove the namespaces "Float" and "Int" and use unions instead. Change-Id: I7b3d9c6e9ab547493d5596c7eda080a25509a730 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45435 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu> Maintainer: Gabe Black <gabe.black@gmail.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
d5ad966da5
commit
c487767cff
@@ -271,7 +271,7 @@ Intel8254Timer::Counter::startup()
|
||||
|
||||
Intel8254Timer::Counter::CounterEvent::CounterEvent(Counter* c_ptr)
|
||||
{
|
||||
interval = (Tick)(sim_clock::Float::s / 1193180.0);
|
||||
interval = (Tick)(sim_clock::as_float::s / 1193180.0);
|
||||
counter = c_ptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user