gendb: improve HSW support