]> git.lizzy.rs Git - plan9front.git/commit
vmx: avoid strdup() register names for register cache
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 12 May 2021 16:04:25 +0000 (18:04 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 12 May 2021 16:04:25 +0000 (18:04 +0200)
commit532c7479e96e439a13df421d3b9f547cde5b5642
tree254f531b5ec4c080e8808cf96b847f1317e58ee4
parent67eac97a81a2adf46507030a28a036ff75331f31
vmx: avoid strdup() register names for register cache

If we tokenize the register file contents in a static buffer,
we can avoid having to duplicate the register names.

All callers to rpoke() provide constant register arguments
so they also do not need to be duplicated.
sys/src/cmd/vmx/vmx.c