Skip to contentSkip to conversation

hw/arm/strongarm: Fix 'time to transmit a char' unit comment

PATCH Applied Philippe Mathieu-Daudé 2 participants 2 messages Oct 14, 2020 – Oct 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm/strongarm: Fix 'time to transmit a char' unit comment

The time to transmit a char is expressed in nanoseconds, not in ticks.

---
 hw/arm/strongarm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/strongarm.c +1 -1
index d7133eea6f9..ca7c385f313 100644
@@ -935,7 +935,7 @@ struct StrongARMUARTState {
     uint8_t rx_start;
     uint8_t rx_len;
 
-    uint64_t char_transmit_time; /* time to transmit a char in ticks*/
+    uint64_t char_transmit_time; /* time to transmit a char in nanoseconds */
     bool wait_break_end;
     QEMUTimer *rx_timeout_timer;
     QEMUTimer *tx_timer;
Signature · 1 line
2.26.2
#1 lore raw
Quoted 13 lines · Philippe Mathieu-Daudé

The time to transmit a char is expressed in nanoseconds, not in ticks.

---
 hw/arm/strongarm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/strongarm.c +0 -0
index d7133eea6f9..ca7c385f313 100644

hw/arm/strongarm.c struct StrongARMUARTState { · line 941

Quoted 8 lines
hw/arm/strongarm.c +1 -1
@@ -935,7 +935,7 @@ struct StrongARMUARTState {
     uint8_t rx_start;
     uint8_t rx_len;
 
-    uint64_t char_transmit_time; /* time to transmit a char in ticks*/
+    uint64_t char_transmit_time; /* time to transmit a char in nanoseconds */
     bool wait_break_end;
     QEMUTimer *rx_timeout_timer;
     QEMUTimer *tx_timer;

Applied to target-arm.next, thanks.

-- PMM